Variable parseConst
Type Declaration
- (text: string, errors?: ParseError[], options?: ParseOptions): any
Parameters
- text: string
Optionalerrors: ParseError[]Optionaloptions: ParseOptions
Returns any
ConstOptionalerrors: ParseError[]Optionaloptions: ParseOptions
Parses the given text and returns the object the JSON content represents. On invalid input, the parser tries to be as fault tolerant as possible, but still return a result. Therefore, always check the errors list to find out if the input was valid.