joshbuddy / jsonpath

Ruby implementation of http://goessner.net/articles/JsonPath/
MIT License
447 stars 72 forks source link

Jsonpath with $ keyname not working #153

Closed jeevamanivel closed 1 year ago

jeevamanivel commented 1 year ago

We have a JSON that has $ as keyname. ex. {"test":{"$":"success"}} When we try JsonPath.on(jsonobj, "$.test.$") - This returns empty array, it should have returned "success". Is there a way to handle this scenario?

JsonPath.fetch_all_path(data) returns this JsonPath also - "$.test.$", but its not able to extract value of this JsonPath

tisba commented 1 year ago

This was fixed in https://github.com/joshbuddy/jsonpath/pull/157

jeevamanivel commented 1 year ago

This was fixed in #157

Thanks! this is working now!

tisba commented 1 year ago

Great! Maybe you want to close the issue then, @jeevamanivel?

jeevamanivel commented 1 year ago

Its working now, hence closing the issue