The fetch Response.
Parse options + onObject/onParseError callbacks.
OptionalonObject?: (obj: T) => voidCalled when a complete object is parsed
OptionalonParseError?: (err: unknown, partial: string) => voidCalled on parse errors (skip bad objects)
Parse a streaming JSON response (not NDJSON).
Unlike NDJSON which requires newline-delimited JSON objects, this parser handles a stream of JSON data where objects may be split across chunks. Uses a state machine to handle partial JSON values.