Is JSON a Regular Language? I was wondering if the JSON spec defined a regular language.  It seems simple enough, but I'm not sure how to prove it myself.

The reason I ask, is because I was wondering if one could use regular expressions to effectively pars JSON.

Could someone with enough rep please create the tags json and regular-language for me?
No, it's not regular.  Since it allows arbitrary embedding of balanced delimiters, it must be at least context-free.

For example, consider an array of arrays of arrays:

[ [ [ 1, 2], [2, 3] ] , [ [ 3, 4], [ 4, 5] ] ] 


Clearly you couldn't parse that with true regular expressions.