1 min read
We can define jq tool as what's sed but for JSON data: We can use it for multiple purposes, for example to create a valid JSON object.
Let's assume we want to create a JSON containing a multi-line string, we can simulate it like follows or just use some file with cat:
$ echo -e "multi\nline"
multi
line
07/12/2022
Read more...