Message302783
Jsonlines is an external to JSON format. You should split the data on lines and pass every line to the JSON parser separately. The same you should do with json.tool.
$ echo -e '{"ingredients":["frog", "water", "chocolate", "glucose"]}\n{"ingredients":["chocolate","steel bolts"]}' | while read -r line; do echo -n "$line" | python -m json.tool; done
{
"ingredients": [
"frog",
"water",
"chocolate",
"glucose"
]
}
{
"ingredients": [
"chocolate",
"steel bolts"
]
} |
|
| Date |
User |
Action |
Args |
| 2017-09-23 04:58:48 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, rhettinger, Eric Moyer |
| 2017-09-23 04:58:48 | serhiy.storchaka | set | messageid: <1506142728.97.0.0178421213793.issue31553@psf.upfronthosting.co.za> |
| 2017-09-23 04:58:48 | serhiy.storchaka | link | issue31553 messages |
| 2017-09-23 04:58:48 | serhiy.storchaka | create | |
|