Welcome to Glass Jar Presentations! Welcome! Whether you are spacing jars on a shelf, choosing shapes, or tying twine around a lid, this is a friendly spot to talk through glass jar presentation ideas. Browse the sections and add your own questions or observations whenever you are ready.

Using jq and curl to Wrangle JSON Arrays from the Terminal

  • Thread starter Thread starter Dave Johnson
  • Start date Start date
D

Dave Johnson

Guest
In this tutorial, I explore how to use jq and curl to query a web service for JSON objects that contain embedded arrays, specifically focusing on weather station data. The process involves creating scripts to fetch data, filter JSON output, and invoke commands based on the elements within the arrays, allowing for dynamic retrieval of sensor values. By the end, I demonstrate how to efficiently process both single and multiple JSON objects, showcasing jq's powerful capabilities for transforming and manipulating JSON data directly from the terminal.
 
Top