Can the following strings be considered valid JSON?
"ok"
false
true
null
123
If not, why does the standard JavaScript JSON.parse
method allow these values to be used as valid JSON?
I have encountered issues when using these values in JSON REST APIs, as some Objective-C frameworks do not parse them correctly.