Documentation
Framework
Version
Class References
Function References
Interface References
Type Alias References
Variable References

PartialJSONParser

Class: PartialJSONParser

Defined in: stream/json-parser.ts:25

Partial JSON Parser implementation using the partial-json library This parser can handle incomplete JSON strings during streaming

Implements

Constructors

Constructor

ts
new PartialJSONParser(): PartialJSONParser;
new PartialJSONParser(): PartialJSONParser;

Returns

PartialJSONParser

Methods

parse()

ts
parse(jsonString): any;
parse(jsonString): any;

Defined in: stream/json-parser.ts:31

Parse a potentially incomplete JSON string

Parameters

jsonString

string

The JSON string to parse (may be incomplete)

Returns

any

The parsed object, or undefined if parsing fails

Implementation of

JSONParser.parse