@aws-lambda-powertools/jmespath
Version:
A type safe and modern jmespath module to parse and extract data from JSON documents using JMESPath
18 lines • 576 B
TypeScript
import type { TreeInterpreter } from './TreeInterpreter.js';
import type { JSONObject, Node } from './types.js';
/**
* Apply a JMESPath expression to a JSON value.
*/
declare class Expression {
#private;
constructor(expression: Node, interpreter: TreeInterpreter);
/**
* Evaluate the expression against a JSON value.
*
* @param value - The JSON value to apply the expression to.
* @param node - The node to visit.
*/
visit(value: JSONObject, node?: Node): JSONObject;
}
export { Expression };
//# sourceMappingURL=Expression.d.ts.map