[{"string":"s","boolean":true}]  is a JSONArray, a subclass of
JSONValue.

{"item":[{"string":"s","boolean":"true"}]} is a JSONObject, also a
subclass of JSONValue.

See the diagrams at http://www.json.org/ and the GWT Javadoc for
com.google.gwt.json.client

On Jun 18, 11:55 am, Mark <[email protected]> wrote:
> When the JSON format is in the following form the
> JSONParser.parseStrict().isObject() works fine.
>
> {"item":[{"string":"s","boolean":"true"}]}
>
> When in the following format JSONParser.parseStrict().isObject() just
> returns null.
>
> [{"string":"s","boolean":true}]
>
> Does any know what causes this?  We are using the natural json form
> defined in jersey.
>
> Thanks

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