Код: Выделить всё
{"Id": "2017",
"Currency": "AUD",
"Date": 2020-06-22,
"InCash": 0.000,
"Dep": "ABC90",
"sumCash": 770.87,
"AnotherDate": 2020-06-21}
Код: Выделить всё
{"Id": "2017",
"Currency": "AUD",
"Date": "2020-06-22",
"startCash": "0.000",
"Dep": "ABC90",
"sumCash": "770.87",
"AnotherDate": "2020-06-21"}
Код: Выделить всё
jsonString.replaceAll(":[ ]*([\\w@\\.]+)", ": \"$1\"")
Код: Выделить всё
new JsonParser().parse(jsonString).toString()
Подробнее здесь: https://stackoverflow.com/questions/625 ... ue-in-java
Мобильная версия