Describe the bug
escape with quoted subscript can not work will with union/or subscripts.
Code sample or steps to reproduce
//PASStest.only("some path with OR subscripts",()=>{constobj={functions: {foo: {io: "foo"},bar: {out: "bar"}}};constjsonp="$..[io,out]";constpaths=jp.paths(obj,jsonp);expect(paths).toEqual([["$","functions","foo","io"],["$","functions","bar","out"],]);});//PASStest.only("some path with ESCAPE",()=>{constobj={functions: {foo: {"io.nest": "foo"},bar: {out: "bar"}}};constjsonp="$..['io.nest']";constpaths=jp.paths(obj,jsonp);expect(paths).toEqual([["$","functions","foo","io.nest"],]);});//FAILEDtest.only("some path with ESCAPE and OR subscripts",()=>{constobj={functions: {foo: {'io.nest': "foo"},bar: {out: "bar"}}};constjsonp="$..['io.nest',out]";constpaths=jp.paths(obj,jsonp);expect(paths).toEqual([["$","functions","foo","io.nest"],["$","functions","bar","out"],]);});Console error or logs
Expected behavior
All test case above should pass.
Expected result
Environment (IMPORTANT)
- JSONPath-Plus version: 6.0.1
Desktop**
- OS: Mac
- Node Version: 15.12.0
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**