UNPKG

@tabular-json/tabular-json

Version:

Tabular-JSON: a superset of JSON with CSV-like tables

22 lines 919 B
/** * Parse a string containing Tabular-JSON. * * The parser is based on the parser from [lossless-json](https://github.com/josdejong/lossless-json) * * @param text * The string to parse as JSON. See the JSON object for a description of JSON syntax. * * @returns Returns the Object corresponding to the given Tabular-JSON text. * * @throws Throws a SyntaxError exception if the string to parse is not valid Tabular-JSON. */ export declare function parse(text: string): unknown; export declare function isValidStringCharacter(code: number): boolean; export declare function isDeepEqual(a: unknown, b: unknown): boolean; export declare const codeUppercaseA = 65; export declare const codeLowercaseA = 97; export declare const codeUppercaseE = 69; export declare const codeLowercaseE = 101; export declare const codeUppercaseF = 70; export declare const codeLowercaseF = 102; //# sourceMappingURL=parse.d.ts.map