1..replaceAll ()
testValue.toString().replaceAll("\"", "");
This method will replace all double quotes that are present in your name, not the first and last.
Example: "Abcd" becomes Abcd, but if the name "Ab" cd "should be Ab" cd according to your requirement, but it becomes Abcd. Say that all double quotes are replaced.
2. substring ()
, :
testValue.toString().subString(1,testValue.toString().length()-1);
1 -
testValue.toString().length()-1: .
.substring() , .replaceAll(), .getString() .
3..ValueOf() .getString()
. , ? ( , , ) JSONValue String String.ValueOf(testValue);
childJSONObject.getString("name");
: 3 > 2 > 1