I would like to replace a json string from:
[{"id":151,"name":"me"}, {"id":4567432,"name":"you"}]
to:
[{"id":"151","name":"me"}, {"id":"4567432","name":"you"}]
As you can see, I just want to add parentheses to the id's value(some number).
I tried:
json = json.replaceAll("\"id\",([0-9]+)", "\"id\",\"$1\"");
but it doesn't work. How can I do it?