removes all traces of unquoted key and comment support

This commit is contained in:
alisdair sullivan 2011-07-03 17:42:44 -07:00
parent e4cbe15fa7
commit e20e6746a2
19 changed files with 13 additions and 225 deletions

View file

@ -1 +0,0 @@
/*preceding comment*/ [/*array open comment*/ "a string"/*string comment*/, 1/*number comment*/, {/*object open comment*/"key"/*post key comment*/:/*colon comment*/[], /*pre key comment*/"another key": 0/*object close comment*/}, true/*literal comment*/] /*concluding comment*/

View file

@ -1,14 +0,0 @@
{name, "comments"}.
{jsx, [start_array,
{string,"a string"},
{integer,"1"},
start_object,
{key,"key"},
start_array,end_array,
{key,"another key"},
{integer,"0"},
end_object,
{literal,true},
end_array,end_json]}.
{json, "comments.json"}.
{jsx_flags, [{comments,true}]}.

View file

@ -1 +0,0 @@
[ /* this is a comment and should be ignored */ ]

View file

@ -1,4 +0,0 @@
{name, "empty_array_with_comment"}.
{jsx, [start_array,end_array,end_json]}.
{json, "empty_array_with_comment.json"}.
{jsx_flags, [{comments,true}]}.

View file

@ -1 +0,0 @@
{/*comment*/}

View file

@ -1,4 +0,0 @@
{name, "empty_object_with_comment"}.
{jsx, [start_object,end_object,end_json]}.
{json, "empty_object_with_comment.json"}.
{jsx_flags, [{comments,true}]}.

View file

@ -1 +1 @@
[[2.0e7], 2.0e7, {"key":2.0e7, "another key":2.0E7}, 4.2e70/*a comment*/ ]
[[2.0e7], 2.0e7, {"key":2.0e7, "another key":2.0E7}, 4.2e70 ]

View file

@ -12,4 +12,3 @@
{float,"4.2e70"},
end_array,end_json]}.
{json, "exp.json"}.
{jsx_flags, [{comments,true}]}.

View file

@ -1 +1 @@
[[2.0], 2.0, {"key":2.0e7, "another key":2.0E7}, {"key":2.0, "another key":2.0}, 4.2/*a comment*/ ]
[[2.0], 2.0, {"key":2.0e7, "another key":2.0E7}, {"key":2.0, "another key":2.0}, 4.2 ]

View file

@ -16,5 +16,4 @@
end_object,
{float,"4.2"},
end_array,end_json]}.
{json, "fraction.json"}.
{jsx_flags, [{comments,true}]}.
{json, "fraction.json"}.

View file

@ -1 +1 @@
[[20], 20, {"key":20, "another key":20}, 42/*a comment*/ ]
[[20], 20, {"key":20, "another key":20}, 42 ]

View file

@ -12,4 +12,3 @@
{integer,"42"},
end_array,end_json]}.
{json, "integer.json"}.
{jsx_flags, [{comments,true}]}.

View file

@ -1 +0,0 @@
{foo : "bar", baz:true, false : null,object:{ key : "value" },list:[null,null,null,[],"\n\r\\"]}

View file

@ -1,23 +0,0 @@
{name, "object with unquoted keys"}.
{jsx, [start_object,
{key,"foo"},
{string,"bar"},
{key,"baz"},
{literal,true},
{key,"false"},
{literal,null},
{key,"object"},
start_object,
{key,"key"},
{string,"value"},
end_object,
{key,"list"},
start_array,
{literal,null},
{literal,null},
{literal,null},
start_array,end_array,
{string,"\n\r\\"},
end_array,end_object,end_json]}.
{json, "object_with_unquoted_keys.json"}.
{jsx_flags, [{unquoted_keys, true}]}.