I have not used it myself (no need) but from the documentation, it sounds as though JavaScript::Value::Escape may be what you are looking for. If not, please say why not because it sounds like escaping literals for embedding into Javascript is its raison d'être.
In reply to Re: Perl structure to Javacript-ready JSON
by hippo
in thread Perl structure to Javacript-ready JSON
by Jeppe
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |