Everything Is Just Dandy!

How to convert JSON to CSV using Linux / Unix shell

nixCraft
Vivek Gite
2022-07-22
https://www.cyberciti.biz/faq/how-to-convert-json-to-csv-using-linux-unix-shell/

See all Bash/Shell scripting related FAQ

Today I will talk about a common problem faced by many Linux or Unix sysadmins and developers. Typically modern apps and security devices heavily depend upon APIs and lists that feed data in JSON format. For example, a list of spamming or VPN CIDRs or a good list of verified bots’ IP CIDRs is in JSON format. If they accept JSON format, you can take this list and upload it to your router or WAF. Unfortunately, not all devices accept JSON format. Hence, we can take JSON format and convert it to CSV format per our needs.

Love this? sudo share_on: TwitterFacebookLinkedInWhatsappReddit

The post How to convert JSON to CSV using Linux / Unix shell appeared first on nixCraft.