Skip to main content
100%

.json to .csv

✓ Published0🌍 Public
CChase Hall
Last edited Jul 25, 2022
Created on Jul 21, 2022

This example converts a JSON dataset from the Environmental Protection Agency's Air Quality System API into a CSV string, logging the result to the console. The data contains air quality monitoring records for ozone, including location, measurement, and agency details. The code uses React to load the JSON data from a URL, then programmatically constructs the CSV by extracting the keys from the first object as headers and mapping each row with a replacer function that converts null values to empty strings. It relies on the `AQI.json` import and `d3` v6 libraries.

AI-generated description
MIT Licensed

Similar vizzes