s-yadav / jsonQ

A JavaScript library to make manipulation and extraction of data from a JSON very easy and fast.
MIT License
202 stars 69 forks source link

Alternative JSON parsers? #19

Open Eric24 opened 6 years ago

Eric24 commented 6 years ago

I see in the code that parse is defined as JSON.parse, but that JSON.parse is explicitly used elsewhere. If parse were used everywhere, it would be simple (and very useful) to add "options" support for an alternative JSON parser (i.e. one that handles circular references without throwing an exception). The use or and choice of such a parser would be left completely to the user of jsonQ, by simply passing in a reference to the external parser, replacing the parse: JSON.parse.