I have file with json values :
abc={"adf": "def", "abc2":"def2", "abc3" : "def3" }
abc4= 1
abc = {hello : world, hello:"a"}
I want to remove whitespace from everywhere in between
{
and }
and not any other place. Values don't have any spaces in my case.
abc={"adf":"def","abc2":"def2","abc3":"def3"}
abc4= 1
abc = {hello:world,hello:"a"}
How can i use sed, awk or perl or any tool to achieve this ?
Note: All values are in one line only. There is no multi line processing required.