You could have used jq to shrink it to one line:
echo '{
"content": "bla"
} | jq -c | nak event
Login to reply
Replies (2)
One thing jq does that nak doesn't is to detect multiple JSON entities within a same line -- or one that ends in that line and another starts, spanning other lines.
I won't even attempt to implement that.
It's what I did, when I found out about the -c flag at the end.