The expected type of the value
The key type for object properties (defaults to string)
Creates a new JsonValue entity.
The expected type of the value
The key type for object properties (defaults to string)
Optionalbuffer: ByteStream | ByteBufferOptional ByteBuffer or ByteStream to read from
Optionalkey: JsonString<K>Optional key associated with this value (for object members)
Gets the current length of the buffer.
The number of bytes in the buffer
Gets the type name of this entity.
The constructor name of this entity
Sets the maximum buffer size before compaction occurs.
The maximum buffer size in bytes
Consumes the value, ensuring it is fully read.
Asynchronously consumes the value, ensuring it is fully read.
Feeds input data into the buffer.
One or more strings, numbers, arrays of numbers, or Uint8Arrays to add to the buffer
ProtectedparseParses the value, determining its type and creating the appropriate entity.
The parsed JSON entity (primitive, object, or array)
Reads the value entity without reading its contents. Allows for lazy evaluation of the actual value.
The JSON entity representing this value
Asynchronously reads the value entity from a stream.
A promise that resolves to the JSON entity representing this value
Reads and fully evaluates the value.
The actual JavaScript value (string, number, boolean, null, object, or array)
Asynchronously reads and fully evaluates the value.
A promise that resolves to the actual JavaScript value
ProtectedskipSkips whitespace characters in the buffer.
Represents any JSON value (primitive, object, or array). Provides lazy evaluation and type detection for JSON values.