NDJSON is a convenient format for storing or streaming structured data that may be processed one record at a time.
- Each line is a valid JSON value
- Line separator is ‘\n’
cat test.json | jq -c '.[]' > testNDJSON.json
With this simple line of code, you can convert and save files in NDJSON format.
Note: jq
is a lightweight and flexible command-line JSON processor.
https://stedolan.github.io/jq/
have even an issue with my json data for elastic.
My challenge is that I need something simular to @m9aertner example, but my nesting goes one level deeper.
should result in: