shell script to format json file