noseglid/pjson — Issue #4: value separators are not verified
Author: noseglid
Created: 2011-10-20 10:47:45+00:00
State: open

creating an invalid JSON, such as: {"key"123} would be considered valid.
It is even this bad, that the Object would have the key "key" and the corresponding value would be 23 - not 123.

This is because it is (arrogantly) assumed that the next character after the last " in the key is the separator, in this case it obviously is not.

Providing such a JSON structure would result in no error, and it is not possible to determine that the value sent actually was 123.

Obviously, correct behavior if the JSON string does not follow rfc is to throw a Json::Exception.