Tests if a string is an invalid JSON string. This only ensures that we are
not using any invalid characters
|
code » | |||
Parses a JSON string and returns the result. This throws an exception if
the string is an invalid JSON string.
Note that this is very slow on large strings. If you trust the source of
the string then you should use unsafeParse instead.
Arguments:
Returns: Object
The object generated from the JSON string, or null.
|
code » | |||
Serializes an object or a value to a JSON string.
Arguments:
Returns: string
A JSON string representation of the input.
|
code » | |||
Parses a JSON string and returns the result. This uses eval so it is open
to security issues and it should only be used if you trust the source.
|
code » |