Skip to content

Instantly share code, notes, and snippets.

@soobrosa
Created May 4, 2021 09:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save soobrosa/2e399232e5e807b7d4d2cf74ec2a2870 to your computer and use it in GitHub Desktop.
Save soobrosa/2e399232e5e807b7d4d2cf74ec2a2870 to your computer and use it in GitHub Desktop.
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