@winglet/json
Version:
TypeScript library for safe and efficient JSON data manipulation with RFC 6901 (JSON Pointer) and RFC 6902 (JSON Patch) compliance, featuring prototype pollution protection and immutable operations
28 lines (27 loc) • 795 B
TypeScript
/**
* Special character constants used in JSONPath expressions
* @see https://goessner.net/articles/JsonPath
*/
export declare const JSONPath: {
/**
* Root node of the data (`$`)
* @see https://goessner.net/articles/JsonPath/index.html#e2
*/
readonly Root: "$";
/**
* Currently processing node (`@`)
* @see https://goessner.net/articles/JsonPath/index.html#e2
*/
readonly Current: "@";
/**
* Child node access operator (`.`)
* @see https://goessner.net/articles/JsonPath/index.html#e2
*/
readonly Child: ".";
/**
* Filter condition operator (`#`)
* @see https://goessner.net/articles/JsonPath/index.html#e2
*/
readonly Filter: "#";
};
export type JSONPath = (typeof JSONPath)[keyof typeof JSONPath];