There is an escaped String JSON with some escaped chars (“Bob”) inside:
{"id":"1","name":"cat with "Bob" name"}
It’s necessary to correctly unescape it (escaping inside text should remain):
{"id":"1","name":"cat with "Bob" name"}
Could you advise, please, how to do this?
I’ve tried:
JSONObject jsonObject = new JSONObject(jsonStringEscaped); // 1
StringEscapeUtils.unescapeJava(jsonStringEscaped) // 2
but they excape everything, so non-valid JSON is received:
{"id":"1","name":"cat with "Bob" name"}