encoding/json/json library

Classes

JsonBinary
Marks raw bytes that should be written back out as a JSON string where each byte is one UTF-16 code unit (0..255) — the same shape malformed binary-in-a-string payloads normally arrive in. Only used on the encode side; decode returns a plain List<int> for malformed strings (see JsonDecodeOptions.badStringAsBinary). Wrap a decoded List<int> in JsonBinary(...) if you need to round-trip it back out losslessly. Like BigInt, this is only handled specially when you pass a non-null options and no toEncodable — see the library doc comment above.
JsonCodec
JsonDecodeOptions
JsonEncodeOptions

Enums

BigIntEncoding
How a BigInt is written by jsonEncode (encode side only).