Skip to main content Module json Copy item path Source Error Parse or serialization failure with the byte offset where it was found. Limits Bounds applied before and during decoding or encoding. Number Exact JSON number token; construction validates the JSON number grammar. Value Owned JSON data. Objects retain member order and parsed objects have unique keys. parse Parse a complete UTF-8 JSON value using default limits. parse_with_limits Parse a complete UTF-8 JSON value. Duplicate object keys and lone surrogates are errors. stringify Encode JSON without literal newlines, enforcing the default bounds. stringify_pretty Encode bounded JSON for people to read: every array element and object member on its own
line, indented by indent spaces per level, “name”: value; empty containers stay “[]” / “{}”.
The output ends without a newline. stringify_with_limits Encode bounded JSON. Invalid duplicate keys in manually built objects are rejected.