Closed tommypink closed 11 years ago
Sorry for the late response. RESTrung expects all responses to be object container that conforms to a JSONObject. We will consider support for arrays in the future. Note that by the nature of arrays the response can't contain other useful info such as pagination. We recommend as good rpactice for rest services that all server side responses are wrapped into object container even in the case of simple arrays.
is array support still not possible? I would love to use restrung and I have no influence to the api, which returns arrays, which is perfectly valid in my opinion.
This is now possible. Appsly REST (RESTrung) uses plug-able serialization which defaults to Jackson. So array based responses are supported.
restrung can't deal with that HTTP respone is a JsonArray?
Can I fix it? Do we have the need?