@supercharge/json
Version:
Secure drop-in replacement for the global `JSON` object
9 lines (8 loc) • 466 B
TypeScript
/**
* Converts a JavaScript value to a JSON string.
*
* @param value A JavaScript value, usually an object or array, to be converted.
* @param replacer A function that transforms the results.
* @param space Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read.
*/
export declare function stringify(value: any, replacer?: (this: any, key: string, value: any) => any, space?: string | number): string;