What programming language have you tried?
You should use the best tool for the job:
Most suitable to process would be JS (Javascript), as that's what the first 2 letters of the word JSON come from... Node.js should be the way to go for a command-line tool.
Next choice up (assuming a Windows OS) should be C#/.NET as that makes it very easy using one of the JSON libraries (NewtonSoft comes to mind)
And the runner up would probably be Java, but there are some that don't like that (for probably the wrong reasons), where also plenty of libraries are available, org.json and Google GSON are popular choices.