Hi
2016-09-23 10:33 GMT+02:00 Karl Kildén <[email protected]>:
> Hi!
>
> Using TomEE 7.x our rest endpoints now expect:
>
> {
> "name":"Name",
> "occupation":"RestProblemSolver"
> }
>
>
> But our partner sends
>
>
> {
> "simpleDTO": {
> "name":"Name",
> "occupation":"RestProblemSolver"
> }
>
> Can I configure johnzon so it expects the DTO root name like this? Or must
> configure to use jettison?
>
>
Johnzon doesnt support that to stay aligned on jsonb so either you wrap
your payload on the server (or unwrap it in a reader) or you can configure
jettison
> Cheers
>