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:
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.
com.google.gwt.json.client.*
JSONValue
toString()
Here, the value is a JSONString, so you need to use:
JSONString
testValue.isString().stringValue()