On 08/18/2009 04:01 PM, Thomas Broyer wrote:
> 
> 
> 
> On 18 août, 19:43, Jeff Chimene <[email protected]> wrote:
>> On 08/17/2009 10:03 PM, Luke wrote:
>>
>>
>>
>>> Below is json object that I am having trouble with.  When I try to use
>>> this object with JSONParser.parse(), I get JSONException.  I have
>>> verified that the JSON object is of valid form but cannot figure out
>>> why I am getting the exception.  I have narrowed it down to the
>>> particular line of code that contains JSONParser.parse();
>>
>>> Anyone see anything here?
>>
>> Well, all that JSONParser() does is to call eval() on the string. Try
>> wrapping the object in parenthesis:
> 
> Well, JSONParser actually calls eval() *with* the wrapping
> parentheses.

Are they added in the parent?

Checking the trunk source, I don't see that concatenation:

  public static JSONValue parse(String jsonString) {
    if (jsonString == null) {
      throw new NullPointerException();
    }
    if (jsonString.length() == 0) {
      throw new IllegalArgumentException("empty argument");
    }
    try {
      return evaluate(jsonString);
    } catch (JavaScriptException ex) {
      throw new JSONException(ex);
    }
  }

See
http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/src/com/google/gwt/json/client/JSONParser.java

--~--~---------~--~----~------------~-------~--~----~
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