Hi Warrell,
thanks for the input.
Though our problem actually isn't *processing* the JSON, but initially
getting it out of a POST request's application/json message body at all.
If the JSON is postet wwwform-urlencoded and comes with common
variable-value pairs, indeed a variety of options
Hi Bardo,
Are you talking about REST in C3 (cocoon-rest dependency) ?
Have you tried annotating REST Resource with:
@Consumes(MediaType.APPLICATION_JSON)
?
e.g.
@Path(/orders)
@Consumes(MediaType.APPLICATION_JSON)public class OrderRestResource {
Sorry, my mail got cut in the middle.
So, you should place @Consumes annotation in REST Resource + all that
Spring config explained here:
https://cocoon.apache.org/3.0/reference/html-single/index.html#webapps.rest
AND
JSONProvider in spring config:
bean id=jsonProvider