Skip to content

Welshman Docs / @welshman/lib / parseJson

Function: parseJson() ​

parseJson(json): any

Defined in: packages/lib/src/Tools.ts:447

Safely parses JSON string

Parameters ​

json ​

JSON string to parse

string | Nil

Returns ​

any

Parsed object or null if invalid