in reply to Re^3: Perl structure to Javacript-ready JSON
in thread Perl structure to Javacript-ready JSON

And it would work if ' is the only char that has to be escaped, (I supposed it was to be able to embed the JSON output in other code, delimited by single quotes, but I don't know the full story, that's a bit XYish actually). hippo might have given a better answer than mine.

  • Comment on Re^4: Perl structure to Javacript-ready JSON

Replies are listed 'Best First'.
Re^5: Perl structure to Javacript-ready JSON
by LanX (Saint) on Nov 25, 2014 at 16:45 UTC
    my guess is rather a stupid parser on the other side using ["'] synonymously.

    Cheers Rolf

    (addicted to the Perl Programming Language and ☆☆☆☆ :)