Friday, September 30, 2011

Re: AutoBean Deserialization of JSON that can be an Array or single Object

Thanks for the reply, the server is using JSON-lib to serialize an XML representation of the data (as two REST APIs are provided), I will look into altering the servers JSON output to force arrays where needed.

Thanks again,

Rich

On 30 September 2011 05:56, -sowdri- <sowdri@gmail.com> wrote:
>> but I cannot guarantee the JSON format.

What library are you using on the server? 

>> Should I look to change my JSON server output so that even if a 
single object is returned it is still wrapped in an array? 

Yes!

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/sUIzUnQtICkJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

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

No comments:

Post a Comment