@jsonhero/path
Version:
An easy way to query and filter JSON objects
15 lines (14 loc) • 530 B
TypeScript
import { PathComponent } from './path-component';
import QueryResult from './query-result';
declare class SimpleKeyPathComponent implements PathComponent {
readonly keyName: string;
readonly isArray: boolean;
constructor(keyName: string);
static fromString(string: string): SimpleKeyPathComponent;
toString(): string;
jsonPointer(): string;
private static escapeExpressions;
private static unescapeExpressions;
query(results: QueryResult[]): QueryResult[];
}
export { SimpleKeyPathComponent };