big-json-viewer
Version:
JavaScript Library to view big JSON structures.
13 lines (12 loc) • 703 B
TypeScript
import { BigJsonViewerNode, TreeSearchAreaOption, TreeSearchMatch } from './model/big-json-viewer.model';
import { JsonNodeInfo } from './parser/json-node-info';
export declare class BigJsonViewerService {
rootNode: JsonNodeInfo;
initWithData(data: ArrayBuffer | string): BigJsonViewerNode;
initWithJs(data: any): BigJsonViewerNode;
getNodes(path: string[], start: number, limit: number): BigJsonViewerNode[];
getKeyIndex(path: string[], key: string): number;
search(pattern: RegExp, searchArea: TreeSearchAreaOption): TreeSearchMatch[];
protected getRenderInfo(node: JsonNodeInfo): BigJsonViewerNode;
protected isOpenableNode(node: JsonNodeInfo): boolean;
}