Remove quote from the JSONArray output

后端 未结 13 1944
野性不改
野性不改 2021-01-02 02:45

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:



        
13条回答
  •  情书的邮戳
    2021-01-02 03:24

    you can use the below to get string without double quotes

        JsonObject childJSONObject = new JsonObject(); 
       JSONValue testValue = childJSONObject.get("name").getAsString();
    

    this gives the string without double quotes " " in the string

提交回复
热议问题