import com.google.gwt.json.client.JSONArray;
import com.google.gwt.json.client.JSONException;
import com.google.gwt.json.client.JSONObject;
import com.google.gwt.json.client.JSONParser;
import com.google.gwt.json.client.JSONString;
import com.google.gwt.json.client.JSONValue;
All of these result in compiler errors in the hosted browser,
repeatedly reporting "The import com.google.gwt.json cannot be
resolved".
I am stumped - is there anything else I need to do to use these new
classes?
Thanks!
This is required so that we actually compile the JSON code into the
resulting Javascript. Similarly, if you want to use XML DOM support,
add
<inherits name="com.google.gwt.xml.XML"/>
to your XXX.gwt.xml
Thanks
Henry
I ran into this too and your suggestion fixed the issue for me.
geoff