Skip to content

Instantly share code, notes, and snippets.

@soobrosa
Created May 4, 2021
Embed
What would you like to do?
Two commands that got me closer to the nested things.
cat recipes_vegan.json | jq '.recipes[].extendedIngredients[]' | jq '[.id,.aisle,.image,.consistency,.name,.nameClean,.original,.originalString,.originalName,.amount,.unit,.meta[],.metaInformation[],.measures.metric.amount,.measures.metric.unitShort,.measures.metric.unitLong]' -c
cat recipes_vegan.json | jq '.recipes[].analyzedInstructions[].steps[]' | jq '[.number, .step, .ingredients[].id, .ingredients[].name, .ingredients[].localizedName, .ingredients[].image]' -c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment