We don't bite newbies here... much | |
PerlMonks |
Escaping quotes in JSON stringby HeadScratcher (Novice) |
on Oct 11, 2015 at 12:37 UTC ( [id://1144422]=perlquestion: print w/replies, xml ) | Need Help?? |
HeadScratcher has asked for the wisdom of the Perl Monks concerning the following question: Hi I have some JSON data in a file that I need to process how do I escape single and double quotes the sample here demonstrates what I'm up against JSON::PP_SUPPORT_METHODS
I think will fix the single quote problem in the 'key' : 'value' pair however how do I deal with quotes single & double within the text? I'm getting errors like ", or expected while parsing object/hash at charecter offest 1234 (before "'2 single quotes'' .....")
BTW the sample data here is just for show the actual file can not be uploaded Thank You
Back to
Seekers of Perl Wisdom
|
|