Function: parseJson

parseJson<T>(input, options?): T

Parses the given JSON string and returns the object the JSON content represents. By default javascript-style comments and trailing commas are allowed.

Type parameters

NameType
Textends object = any

Parameters

NameTypeDescription
inputstringJSON content as string
options?JsonParseOptionsJSON parse options

Returns

T

Object the JSON content represents