Remove quote from the JSONArray output

后端 未结 13 1744
野性不改
野性不改 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:31

    Assuming com.google.gwt.json.client.* here (from question tags and use of JSONValue which is hardly found anywhere else), toString() is meant to give you a JSON representation of the value.

    Here, the value is a JSONString, so you need to use:

    testValue.isString().stringValue()
    
    0 讨论(0)
提交回复
热议问题