So I have a bash script which outputs details on servers. The problem is that I need the output to be JSON. What is the best way to go about this?
bash
JSON
I find it much more easy to create the json using cat:
cat
cat < /your/path/myjson.json {"id" : "$my_id"} EOF