How can I parse a nested JSON file on an old Unix version?

0
1
Asked By KookyFox123 On

Hi everyone, I'm trying to separate a JSON file by transaction_id so that each transaction_id corresponds to one record. However, I'm having trouble with my shell script because it seems unable to read the JSON file, and as a result, it won't process as I intended. Below is a snippet of my code that I'm currently using. I'm really hoping someone can help me figure this out!

1 Answer

Answered By HelpfulDude42 On

Have you considered using jq for this? It's a fantastic tool for working with JSON data, and it would simplify your task greatly if it were available to you.

CuriousCat89 -

Thanks for the suggestion! I'd love to use jq, but my current Unix version doesn't allow me to install new libraries. Kind of stuck on that front.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.