in reply to quote in json

Also note that some modules (in various languages) accept a superset of JSON, such that one may accept unquoted strings as values, while another will not.

-QM
--
Quantum Mechanics: The dreams stuff is made of

Replies are listed 'Best First'.
Re^2: quote in json
by locked_user sundialsvc4 (Abbot) on May 11, 2015 at 11:19 UTC

    But, “some languages will accept ...” of course, is never the way that one should go.   JSON modules, in various languages, were designed to be universal – and, above all, safe.   (JSON started out, in the younger, more naïve days of the Internet, as, “let’s just eval the string!   ‘Efficient,’ huh?”)   Heh.   You can afford the couple extra bytes, on whatever platforms and languages you might be using, to use a supplied, standard package to do the work for you.   (Especially on the wild-and-wooly JavaScript side!)