• Better Version of JSON.parse() that is able to read undefined, NaN, Infinity, and -Infinity values.

    Parameters

    • text: string

      A valid JSON string (with undefined, NaN, Infinity, and -Infinity values allowed).

    • OptionalkeepUndefined: boolean

      Whether or not to include undefined variables when parsing, defaults to true.

    Returns any

    The parsed JSON data.