13 Apr
2013
13 Apr
'13
8:41 a.m.
On 04/12/2013 07:18 PM, Michael Marcin wrote:
In practice you often find json that does not quote keys and I would prefer a useful library to a pedantic one for this task. You could have a strict mode I suppose.
I pretty much just go by what http://jsonviewer.stack.hu/ accepts.
If we are to accept an extended syntax, then it should be absolutely clear what those extensions are. I have no idea what the URL above accepts. Apart from unquoted keys, two other extensions I have seen are C-style comments, and support for the floating-point values of infinity and NaN. Are there other potential extensions?