Function podValueFromJSON

  • Parses a PODValue from the JSON-compatible format potentially coming directly from JSON.parse.

    Parameters

    • jsonValue: JSONPODValue

      the JSON-encoded POD value to parse

    • Optional nameForErrorMessages: string

      an optional name for this value to be used in error messages

    Returns PODValue

    a standard TypeScript POD value

    Throws

    TypeError if the input value is not validly formed

    Throws

    RangeError if a value is outside of the bounds

    Throws

    SyntaxError if a value is unparseable

Generated using TypeDoc