another nice JSON file: how to extract its structure using jq

$ jq -c 'path(..)|[.[]|tostring]|join("/")|"."+.'

The idea is to use one of the output lines in order to access the respective field on your next jq command line:

$ jq ".fields.description" X.json


Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.