3 ms·
Actually JSON is such a simple format, that everybody with a bachelor in computer science should be able to write a parser as correct as standard implementation
by legulere 12y ago
Actually JSON is such a simple format, that everybody with a bachelor in computer science should be able to write a parser as correct as standard implementations (they often ignore that the root element needs to be an object and multiple entries with the same identifier)
- drdaeman 12y agoIt's simple, but it's limited at the same time. And like when one tries to use inappropriate data structure, this may lead to issues.
- drostie 12y agoYou're actually wrong. (1) "A JSON text ... conforms to the JSON value grammar." (2) The entire standard for the object grammar is, "An object structure is represented as a pair of curly bracket tokens surrounding zero or more name/value pairs. A name is a string. A single colon token follows each name, separating the name from the value. A single comma token separates a value from a following name." In other words, people SHOULD ignore both of those, because ignoring both of those is a part of the ECMA-404 JSON standard. (The latter actually wasn't even a part of RFC 4627; the operative word there was SHOULD, not MUST.)