UNPKG

625 BTypeScriptView Raw
1export = json_parse_better_errors;
2
3/**
4 * Converts a JavaScript Object Notation (JSON) string into an object.
5 * @param text A valid JSON string.
6 * @param reviver A function that transforms the results. This function is called for each member of the object.
7 * If a member contains nested objects, the nested objects are transformed before the parent object is.
8 * @param context The number of characters to display in each direction around the position of an error.
9 */
10declare function json_parse_better_errors(
11 txt: string,
12 reviver?: (key: string, value: any) => any,
13 context?: number,
14): any;