I\'ve a file with a sequence of JSON element:
{ element0: \"lorem\", value0: \"ipsum\" }
{ element1: \"lorem\", value0: \"ipsum\" }
...
{ elementN: \"lorem\"
You can use jq package which can be installed in all Linux systems. Install the tool using below commands.
# Redhat based systems(Centos)
yum install -y epel-release
yum install -y jq
# Debian based systems
apt install -y jq
Then you will be able to pipe text streams to the jq tool.
echo '{"test":"value", "test2":"value2"}' | jq
Hope this answer will help.