I wrote a small tool that “unpacks” ndjson files to make them more readable and editable (and that is accompanied with a “repack” tool). I use this to
- check in backups of my dashboards, visualizations, and searches into VCS (git/svn), with readable diffs that allow to track changes, and to occasionally
- hand-edit the files, e.g., when some keys in my documents were renamed.
It specifically handles the nested JSONs, by exporting them into separate (by default pretty-printed) files. So basically, you give it a single export.ndjson (or let it talk to your OSD instance directly), and you get a bunch of much more readable, formatted JSON files in the current directory.
It is pip-installable via pip install ndjson-manip and comes with the commands ndjson-unpack and ndjson-repack.
Sorry, this is probably not a great announcement; I just thought that my little script could be useful to others as well and thought this forum might be good to notify. Please be nice, I do not have much time for OSS development but still want to contribute.
Now I am curious if I am the only one interested in such a thing, or if this scratches other peoples’ itches as well.