← All courses

JSON, YAML and XML in the terminal

Extract and reshape data from JSON, YAML and XML right in the terminal with jq, yq, xmlstarlet and xmllint.

26 tasks
  1. jq: nested fieldeasy
  2. jq: filter by conditioneasy
  3. Extract fields with jqeasy
  4. jq: filter an arraymedium
  5. jq --arg: a parameter from the shellmedium
  6. jq: build an array of valuesmedium
  7. jq: sum over an arraymedium
  8. jq: sum by groupmedium
  9. jq: rebuild objectsmedium
  10. jq: to_entries into key=value pairsmedium
  11. jq: merge two objectsmedium
  12. jq: join two arrays by keymedium
  13. The release commit from an API responsemedium
  14. Fix the dashboard JSONmedium
  15. jq: JSONL to a CSV summaryhard
  16. jq: top by field into a new objectmedium
  17. yq: read a value from YAMLeasy
  18. yq: change a value in YAMLeasy
  19. Get an element's text by XPatheasy
  20. Extract a value with XPatheasy
  21. Extract an attribute valueeasy
  22. Count the elementsmedium
  23. Select by Conditionmedium
  24. Change a Node's Valuemedium
  25. Fix broken XMLmedium
  26. Format XMLeasy