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.
In reply to Re^4: Perl structure to Javacript-ready JSON
by Eily
in thread Perl structure to Javacript-ready JSON
by Jeppe
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |