An interpreted programming language written in Go.
Functions for encoding and decoding JSON.
To use: import 'std/json'
encode
takes an value and converts it into JSON. Values that can’t be serialized will cause
encode
to return an error. Class instances are currently not supported.
decode
takes a string and returns a Nitrogen value object that represents the parsed JSON
string. Decode may return any valid JSON type including string, int, float, map, array,
boolean, or nil. If the JSON is invalid, decode
will return an error.