#!/bin/bashs='{"id":1","color": ["green","red", "blue"]}, {"id":2, color:black}'sed ':a;s/\(\[[^][]*\)",[ \t]*"/\1,/;ta;' <<< "$s"
Standard input is empty
{"id":1","color": ["green,red,blue"]}, {"id":2, color:black}
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!