Interface JSON
"[toStringTag]": string;
parse(
text: string,
reviver?: (this: any, key: string, value: any) => any,
): any;
stringify(
value: any,
replacer?: (this: any, key: string, value: any) => any,
space?: string | number,
): string;
stringify(
value: any,
replacer?: (string | number)[],
space?: string | number,
): string;
}
 Index
Properties
Methods
 Methods
parse
- parse(text: string, reviver?: (this: any, key: string, value: any) => any): any
- Parameters- text: stringA valid JSON string. 
- Optionalreviver: (this: any, key: string, value: any) => 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. 
 - Returns any
- text: string
stringify
- stringify(
 value: any,
 replacer?: (this: any, key: string, value: any) => any,
 space?: string | number,
 ): string
- Converts a JavaScript value to a JavaScript Object Notation (JSON) string. - Parameters- value: anyA JavaScript value, usually an object or array, to be converted. 
- Optionalreplacer: (this: any, key: string, value: any) => any- A function that transforms the results. 
- Optionalspace: 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: any
- stringify(
 value: any,
 replacer?: (string | number)[],
 space?: string | number,
 ): string
- Converts a JavaScript value to a JavaScript Object Notation (JSON) string. - Parameters- value: anyA JavaScript value, usually an object or array, to be converted. 
- Optionalreplacer: (string | number)[]- An array of strings and numbers that acts as an approved list for selecting the object properties that will be stringified. 
- Optionalspace: 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: any
Converts a JavaScript Object Notation (JSON) string into an object.