UNPKG

@microsoft.azure/openapi-validator-core

Version:
25 lines (24 loc) 621 B
import { JSONPath } from "jsonc-parser"; import { JsonPath, Range } from "./types"; export interface JsonInstance { getLocation(path: JSONPath): Range; getValue(): any; } export interface IJsonParser { parse(text: string): JsonInstance; } export declare class JsonParser implements IJsonParser { parse(text: string): { getLocation: (path: JsonPath) => { start: { line: number; column: number; }; end: { line: number; column: number; }; }; getValue: () => any; }; }