I have a json string which has the below value
"appId": 434832826
I want to add double quotes around the number so that the json becomes valid.
I tried replaceAll(":\\\s\\\d+", ":\"$0\"");
But it is replacing the value as
"appId":": 434832826"
I am not sure if this isthe correct regex. An help is much appreciated. Thanks in advance
JSONfunctions, depending on the language used.434832826with"marks ?replaceAll(":\\\s*(\\\d+)", ":\"$1\"");