jsonpath icon indicating copy to clipboard operation
jsonpath copied to clipboard

Any plan to support Bracket-notated child or children

Open chace20 opened this issue 1 year ago • 1 comments

Hi, I found you work only support '.' to get child, is there any plan to support '[]'?

var pathDelimiter = "."

Such like that:

JsonPath expressions can use the dot–notation $.store.book[0].title or the bracket–notation $['store']['book'][0]['title']

https://github.com/json-path/JsonPath

chace20 avatar Mar 04 '24 09:03 chace20

Hi @chace20

I recently came across Ojg which seems to be up to spec with the JSONPath RFC. This should be able to handle any well-formed query. Have you tried it?

mdaverde avatar Apr 15 '24 13:04 mdaverde