Comment Comment by Safety1stClyde > And although officially JSON requires quoted strings, almost none of the parsers actually enforce thatWhat programming language? I'm not familiar with those parsers, the ones I know of very much do enforce quoted strings.> you will find a huge amount of JSON out there that is not actually compliant with the official specThe parsers I use all follow the current JSON RFC specification, and I've never encountered any JSON from APIs which they reject.> Just like browsers have huge hacks in them to handle misformed HTML.Web browsers do deal with a variety of things, not so much JSON parsers in my experience. parent Safety1stClyde 5 years ago
What programming language? I'm not familiar with those parsers, the ones I know of very much do enforce quoted strings.
> you will find a huge amount of JSON out there that is not actually compliant with the official spec
The parsers I use all follow the current JSON RFC specification, and I've never encountered any JSON from APIs which they reject.
> Just like browsers have huge hacks in them to handle misformed HTML.
Web browsers do deal with a variety of things, not so much JSON parsers in my experience.