json json implementation. encode(value, replacer, space = 1) Encode a value to json. decode(text, reviver) Decode a json string to a value. readout(obj) Encode an object fully, including function definitions.