Common code for handling JSON
Support for serializing JSON structures: objects, Boolean values,
number, strings, lists of string or number items.
Handle a nested item in JSON syntax
"
":
{
}
,
Handle a list item in JSON syntax
:
[
]
,
Handle a string item in JSON syntax
,
Handle a number item in JSON syntax
,
Handle a false Boolean value in JSON syntax
,
Handle a true Boolean value in JSON syntax
,
Unhandled item in JSON syntax
Unhandled:
/
[]
Escape a JSON string value
The value of the string.