XStream serialization bug?

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

XStream serialization bug?

Xybrek

I'm not sure if this is a Restlet/XStream bug but when you have a resource like this

List<User> getUsers() {}

And this resource returns a single element List then the resulting JSON string is like this

{ "users" : { "id" : 1 } } 

Instead of

{ "users" : [{ "id" : 1 }] } 

The problem here is the result was not JSON array as expected.

Is there a workaround for this bug?

--
You received this message because you are subscribed to the Google Groups "Restlet Framework (Discuss)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].