UNPKG

zzon

Version:

A fast, spec compliant, ZON parser and serializer for JavaScript.

8 lines (7 loc) 430 B
/** * Converts a Zig Object Notation (ZON) string into an object. * @param text A valid ZON string. * @param reviver 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. */ export declare function parse(source: string, reviver?: (this: any, key: string, value: any) => any): any;