Open nielinjie opened 2 years ago
The project is not really being actively maintained, but you'd have a better chance I think if your code sample worked for this library. The API you are using in your sample does not match this project.
Sorry,I should mentioned that jp.paths
in codes is just a help function for this:
import { JSONPath } from "jsonpath-plus";
const jp = {
paths: (obj: any, path: string) => {
return JSONPath({ path, json: obj, resultType: "path" }).map(
JSONPath.toPathArray
);
},
Describe the bug
escape with quoted subscript can not work will with union/or subscripts.
Code sample or steps to reproduce
Console error or logs
Expected behavior
All test case above should pass.
Expected result
Environment (IMPORTANT)
Desktop**