[ad_1]
I’ve an assignment in which I have the requirement to validate the structure of a JSON file with my own means and return whether it’s properly formatted or not.
I’ve been thinking about what would be a good approach to doing so, and what seems like a decent idea is having a stack, on which a push opening tokens and pop closing ones.
However, I’m curious to see how someone more experienced than me would approach if you were to do this from scratch!
Any advice is welcomed, thanks in advance.
[ad_2]