Hi, I am new at working with overlay type and JSON

I have a JSON string,

{"enableCompose":true}

and I have a overlay type

import com.google.gwt.core.client.JavaScriptObject;
public class Config extends JavaScriptObject {
        public static final native Config fromJson(String json) /*-{
           return eval(json);
        }-*/;

        protected Config() {
        }

        public final native boolean getEnableCompose() /*-{ return
this.enableCompose; }-*/;
}

When I call Config.fromJson and pass in the string.  I get the
following exception.

com.google.gwt.core.client.JavaScriptException: (SyntaxError):
Expected ';'
 number: -2146827284
 description: Expected ';'

I am not sure where ';' is expected.  Any help is appreciated.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to