Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Escaping quotes in JSON string

by RichardK (Parson)
on Oct 11, 2015 at 13:58 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1144431]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2024-04-19 04:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found