camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jonathan Vila Lopez <jonathan.v...@gmail.com>
Subject Putting some Map values into a Bean
Date Mon, 27 Oct 2014 15:24:07 GMT
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]}")).
                *log("COMIC :
${body[id]}---${body[title]}----${body[prices][0][price]} ");*

After the log line I want to put those 2 values into a new Bean fields.

Is there any built-in transformation process inside camel that is capable
of create new POJOs and assign values ?

Kind regards.



[image: Inline image 2]

* Jonathan Vila    ** <https://www.twitter.com/jonathan_vila>
<http://www.linkedin.com/in/jonathanvila>*


* jonathan.vila@gmail.com <jonathan.vila@gmail.com>*

Mime
  • Unnamed multipart/related (inline, None, 0 bytes)
View raw message