0

I've got this this json data that I want to look up a certain value from with a query:

http://pastebin.com/Vf59Cf9Q

I want to find description == "chassis" in this path:

$.entries..nestedStats.entries..nestedStats.entries.type

However, I just can't get it to work.

Tried these two alternatives, but no luck:

$.entries..nestedStats.entries..nestedStats.entries[?(@.type.description == 'chassis')]
$.entries..nestedStats.entries..nestedStats.entries.type[?(@.description == 'chassis')]

Have tried this on these sites:

Any help would be appreciated!

/Patrik

1 Answer 1

1

This did the trick:

$.entries.*.nestedStats.entries.*.nestedStats.entries.type[?(@ == "chassis")
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.