Putting some Map values into a Bean

2014-10-27 Thread Jonathan Vila Lopez
Hello I want to get some fields from a Map structure and put those fields into a Bean. I have this code : from("http://URL to a REST service that returns a JSon ..."). unmarshal().json(JsonLibrary.Jackson). split(simple("${body[data][results]}")).

Re: Putting some Map values into a Bean

2014-10-27 Thread Jonathan Vila Lopez
Hello Thanks to the help of Christian..now it works : from("http://gateway.m...URL.805d";). unmarshal().json(JsonLibrary.Jackson). split(simple("${body[data][results]}")). * bean(new ComicBuilder(), "parse(${body[title]}, ${body[thumbnail][pa

Re: Putting some Map values into a Bean

2014-10-28 Thread Charles Moulliard
Hi Jonathan, I would like to suggest that you generate the POJOS classes from the JSON response that you are getting from Marvel RESTfull Gateway using by example this online tool (http://www.jsonschema2pojo.org/). The classes generated could be next integrated with your project and used by Jackso