Skip to content

stringifyJson

stringifyJson(value, replacer?, space?): string

Defined in: packages/common/src/json.ts:39

Convert a JavaScript value to a JSON string with bigint support.

unknown

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

(this, key, value) => unknown

A function that transforms the results.

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

string | number

string