Optionalpath: stringOptionalline: numberOptionalerrorPortion: stringOptional ReadonlycauseOptional ReadonlyerrorOptional ReadonlylineReadonlynameOptional ReadonlypathStaticcreateThe SyntaxError to convert to a JsonParseError.
The data input that caused the error.
OptionaljsonPath: stringThe path from which the data was read, if known.
Creates a
JsonParseErrorfrom aSyntaxErrorthrown during JSON parsing.