MarloweJSON: {
    parse: ((text, reviver?) => any);
    stringify: {
        (value, replacer?, space?): string;
        (value, replacer?, space?): string;
    };
} = ...

Type declaration

  • parse: ((text, reviver?) => any)
      • (text, reviver?): any
      • Converts a JavaScript Object Notation (JSON) string into an object.

        Parameters

        • text: string

          A valid JSON string.

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

          A function that transforms the results. This function is called for each member of the object. If a member contains nested objects, the nested objects are transformed before the parent object is.

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

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

              Returns any

        Returns any

  • stringify: {
        (value, replacer?, space?): string;
        (value, replacer?, space?): string;
    }
      • (value, replacer?, space?): string
      • Converts a JavaScript value to a JavaScript Object Notation (JSON) string.

        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

      • (value, replacer?, space?): string
      • Converts a JavaScript value to a JavaScript Object Notation (JSON) string.

        Parameters

        • value: any

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

        • Optional replacer: null | (string | number)[]

          An array of strings and numbers that acts as an approved list for selecting the object properties that will be stringified.

        • 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