Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Escaping quotes in JSON string

by RichardK (Parson)
on Oct 11, 2015 at 13:58 UTC ( #1144431=note: print w/replies, xml ) Need Help??


in reply to Escaping quotes in JSON string

That's not valid json, if you check the spec it says

A string is a sequence of zero or more Unicode characters, wrapped in +double quotes, using backslash escapes.

allow_singlequote is a JSON::PP extension and just not worth using IMHO. The beauty of JSON is that it's simple & well defined, but if you use extensions then you'll break interoperability.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1144431]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (8)
As of 2020-06-02 08:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you really want to know if there is extraterrestrial life?



    Results (15 votes). Check out past polls.

    Notices?