toJSON

convert a string to a JSONValue

Examples

Serialize a string.

assert("bork".toJSON == JSONValue("bork"));

Meta