Found a new tool: gron. It flattens JSON and makes it easier to figure out what structure some JSON document has. Once you know that structure, further processing is much easier.