users@jersey.java.net

[Jersey] Creating an EmberJS-friendly REST API

From: Dietz, Randall <randall_at_dietz.id.au>
Date: Fri, 6 Feb 2015 17:23:10 +1000

Hi all,

EmberJS is expecting JSON in the format of:

{ "widget": {"id":123, "name":"widget123"}}

Out of the box, my Genson-enabled POJO format is:

{"id":123, "name":"widget123"}

This topic doesn't appear to be covered very much on the InterWeb... what
few "solutions" I can find are mostly incomplete or confusing.

I suspect Genson does not produce this kind of JSON... but can someone
recommend a solution that can?

Thanks