Details
-
Type:
New Feature
-
Status:
Closed
-
Priority:
Major
-
Resolution: Duplicate
-
Affects Version/s: 1.8.3
-
Fix Version/s: None
-
Component/s: JsonGenerator, JsonParser
-
Labels:
-
Number of attachments :
Description
The JavaScript is able to parse less strict JSON-like format. For instance:
{a:[2,3,,,4,]}is equivalent of
{"a":[2,3,null,null,4]}and sometimes used to reduce wire traffic in ajax apps.
It's useful feature to parse and generate in the same format as the JS accepts.
JsonParser.Feature.ALLOW_UNQUOTED_FIELD_NAMES already provides for the unquoted JSON element names. I haven't yet noticed any configurations for commas.