> you had to pass the entire JSON in a single line
Just yesterday I devoted some time to getting around this limitation. Thanks.
You could have used jq to shrink it to one line:
echo '{
"content": "bla"
} | jq -c | nak event
Please Login to reply.
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.