All Classes and Interfaces
Class
Description
A JSON array: values, in order.
Reads a type from a stream and writes it to one.
Reads the values that the code generated for JsonRecord types binds from
strings, and checks the type of a
JsonValue.A JSON boolean.
A parsed document: its root value, and where each of its values is written.
Thrown when a document cannot be read: it is not valid in the format of the parser, or it does not bind to the
type it is read as.
The syntax a
JsonParser reads, each strictly: a document is rejected as soon as it steps outside its
format.Thrown when a valid document does not bind to the type it is read as: a value of the wrong type, a number out of
range, a missing or unknown member, or a value the type rejects.
Gives the name of a record component's member, the string of an enum constant, or the tag that names a record in a
sealed interface, in place of its Java name.
Member names known in advance, for
JsonStreamReader.name(JsonNames) to match without creating a String, and for
JsonStreamWriter.name(JsonNames, int) to write already encoded.The JSON
null.A JSON number, kept exactly as written: it is converted only when one of the
as methods is called.A JSON object: members with distinct names, in the order of the document or of their insertion.
Builds an object, keeping the order of the members.
Thrown when a document is not valid in the format of the parser, or exceeds a limit of the parser.
Parses RFC 8259 JSON strictly: a document that is not valid JSON, has an
object with two members of the same name, or exceeds a limit, is rejected with a
JsonParseException.Builds a parser.
A position in a document: a line and a column.
Marks a record, or a sealed interface of records, that documents bind to, with
JsonParser#parseAs(Class, byte[]), and that
JsonWriter#formatAs(Class, Object) writes.
Reads a document value by value, as typed reads.
Writes a document value by value, as UTF-8, compact or pretty as the JsonWriter
that created it.
A JSON string.
Lays out a sealed interface as an object of its record whose tag member names the record, wherever it is among the
members:
{"type": "circle", "radius": 1}.The type of a JSON value.
A JSON value.
Lays out a sealed interface as an object with one member, named after the record, whose value is the record:
{"circle": {"radius": 1}}.Writes values as JSON, in UTF-8: compact, the default, or pretty, indented with 2 spaces.
Builds a writer.
What binding does with a member of an object that no component of the record takes.