The specific number type (defaults to number)
Creates a new JSON entity.
The specific number type (defaults to number)
Optionalbuffer: ByteStream | ByteBufferOptional ByteBuffer or ByteStream to read from
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 entity by reading it if not already consumed.
Asynchronously consumes the entity by reading it if not already consumed.
Feeds input data into the buffer.
One or more strings, numbers, arrays of numbers, or Uint8Arrays to add to the buffer
ProtectedparseAsynchronously reads and parses the entity from a stream.
A promise that resolves to the parsed value
ProtectedskipSkips whitespace characters in the buffer.
Attempts to parse by executing a callback, reverting buffer state on failure.
The return type of the callback
The callback function to execute
The result of the callback, or undefined if parsing needs more data
Represents a JSON number value. Parses numeric data including integers, floats, and scientific notation.