UNPKG

json10

Version:

Handle circural references, comments and many more inside JSON

20 lines (18 loc) 628 B
// @ts-nocheck import { Models } from 'lodash-walk-object/browser'; type Circ = Models.Circ; declare class JSON10 { static structureArray(anyJSON: Object, options?: { include?: string[]; exclude?: string[]; }): any[]; static cleaned(json: any, onCircs?: (circs: Circ[]) => any, options?: { exclude?: string[]; include?: string[]; breadthWalk?: boolean; }): any; static stringify(anyJSON: Object, replace?: any, spaces?: number, onCircs?: (circs: Circ[]) => any): string; static parse(json: string, circs?: Circ[]): any; } export { JSON10 }; export type { Circ };