Serialize a value to an XSS-safe, embed-ready JSON string.
The value to serialize.
The escaped JSON string.
Serialize a value to an XSS-safe, embed-ready JSON string.