/** * Collection of JSON utilities */ export default class JsonUtils { /** * Converts JSON Pointer to property path */ static pointerToPath(pointer: string): string; /** * Converts property path to JSON Pointer */ static pathToPointer(path: string): string; /** * Gets parent pointer of a specified pointer */ static getParentPointer(pointer: string): string; /** * Resolves JSON reference in specified JSON schema (if needed) */ static resolveReference(reference: string, jsonSchema: Object): any; /** * Escapes string to be safe for JSON Pointer * * According to https://tools.ietf.org/html/rfc6901, * '~' => '~0' * '/' => '~1' */ static escapeForPointer(input: string): string; /** * Unescapes string to be safe for JSON Pointer * * According to https://tools.ietf.org/html/rfc6901, * '~0' => '~' * '~1' => '/' */ static unescapeFromPointer(input: string): string; }