json
The json Library is part of the Standard Library, so every Group holds it. A Script imports the names it uses, as in use decodeJson from json. Its normative source is spec/stdlib/json.talk, and the full rules are in chapter 7.
An argument of the wrong kind raises wrong kind before any work is done, so the entries below list only the other errors each raises (every stdlib function).
decodeJson
Section titled “decodeJson”decodeJson(t)
The value the JSON text t holds.
Also raises: can't decode.
encodeJson
Section titled “encodeJson”encodeJson(v)
The value v as compact JSON text.
Also raises: not encodable.
pointerPath
Section titled “pointerPath”pointerPath(t)
The Path the JSON Pointer text t locates, with each array index as a 1-based position.
applyPatch
Section titled “applyPatch”applyPatch(doc, patch)
doc with the RFC 6902 JSON Patch patch, a list of operations, applied in order.
Also raises: can't patch.