At work, we don't escape it, as we don't include JSON into script tags.
What's wrong with s{([/!])}{\\$1}g?
($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,
In reply to Re: JSON::XS and escaping literal strings
by choroba
in thread JSON::XS and escaping literal strings
by abelard12
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |