Jeppe has asked for the wisdom of the Perl Monks concerning the following question:
Esteemed monks,
I'm essentially trying to escape the contents of a JSON structure.
This should becomemy $hashref = { abc => "abc'abc" };
, and it must work for blessed references as well. I'm currently using the JSON module, but I'm not married to it. Ideally, this would have been resolved by a hook in the JSON module - but that does not seem to be available. What other options do I have?{"abc":"abc\'abc"}
|
---|
Back to
Seekers of Perl Wisdom