Unexpected JSON.stringify() results
Javascript code:
var bar = 'baz' ;
JSON.stringify( { bar : bar } ) ; // {"bar":"baz"}
I followed all the stackoverflow links, and apparently my confusion lies
in the JSOL spec and not the JSON spec. But that doesn't help me get to
{"baz":"baz"} without creating a useless named reference.
It already seems the answer is "write your own damn spec then", so I
should probably not even post.
-Jim
No comments:
Post a Comment