UNPKG

644 BTypeScriptView Raw
1/**
2 * JSON utility functions.
3 *
4 * @module json
5 */
6/**
7 * Transform JavaScript object to JSON.
8 *
9 * @param {any} object
10 * @return {string}
11 */
12export const stringify: {
13 (value: any, replacer?: ((this: any, key: string, value: any) => any) | undefined, space?: string | number | undefined): string;
14 (value: any, replacer?: (string | number)[] | null | undefined, space?: string | number | undefined): string;
15};
16/**
17 * Parse JSON object.
18 *
19 * @param {string} json
20 * @return {any}
21 */
22export const parse: (text: string, reviver?: ((this: any, key: string, value: any) => any) | undefined) => any;
23//# sourceMappingURL=json.d.ts.map
\No newline at end of file