On the successful call, I am getting the JSONArray with the key \"objects\" and again the testValue with the key \"name\". The output is Like:
Convert the JSONValue back to String:
String.ValueOf(testValue);
Or
childJSONObject.getString("name");
After all this and still end up with quotes - then fall back on RegExp.
testValue.toString().replaceAll("\"", "");