Function podValueToJSON

  • Converts a PODValue from the TypeScript format used internally, into a JSON-compatible format safe to serialize with JSON.stringify. This function will produce the simplest of the available encodings which can represent the input with no loss value or type information.

    Parameters

    • podValue: PODValue

      the POD entries to convert

    • Optional nameForErrorMessages: string

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

    Returns JSONPODValue

    a JSON-compatible representation

    Throws

    TypeError if the input entries are not validly formed

Generated using TypeDoc