Sign in


Decodes a JSON-encoded string into its value.


neon.jsonDecode(string json)


The valid JSON-encoded string that you wish to decode.

Return value

This method returns the decoded JSON value as a Javascript value, such as an Object.

This method is not chainable.


This method can be used to safely decode a JSON-encoded string. It performs enough basic syntax checking of the string to ensure its security in case the string comes from an untrusted source, but it does not necessarily recover from syntax errors in the string.