I have a json file with a list of customers and date. My file looks like this:
What I need to do is be able to extract data block by block, instead of line by line (like using a for loop in bash).
I'm use to parsing files line by line to get the data, but which json, I need to somehow read it block by block (or more precisely, object by object?). That is I need to read it by whats inside the brackets for each customer.
That way I can write a script that extracts the data I need, and builds a csv from it.
For example:
I understand how this is done when reading a file line by line, but how can I read each json block as if it was a line so to speak?