wp.jochen.hayek.name/blog-en

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
Exit mobile version