Function stringifyJSON

  • Converts a JavaScript value to a JavaScript Object Notation (JSON) string.

    This functions differs from the built-in JSON.stringify in that it supports serializing BigInts.

    This function takes the same arguments as the built-in JSON.stringify function.

    Parameters

    • value: any

      A JavaScript value, usually an object or array, to be converted.

    • Optional replacer: ((this, key, value) => any)

      A function that transforms the results.

        • (this, key, value): any
        • Parameters

          • this: any
          • key: string
          • value: any

          Returns any

    • Optional space: string | number

      Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read.

    Returns string

Generated using TypeDoc