users@jersey.java.net

[Jersey] Re: JSON inside POJO (Solved)

From: Pierre Radermecker <pradermecker_at_yahoo.ca>
Date: Thu, 18 Aug 2011 10:15:00 -0700 (PDT)

Other than this, do you really need to handle things as JSONObject?
This may be the case if you are calling another library that takes
JSONObject input; but if not, there isn't necessarily point in doing
that.
You could just rather bind to simple Map<String,Object>, which is more
general (or, if you want a decent tree model, to JsonNode provided by
Jackson)

I have followed your advice and tried using JsonNode instead of JsonObject.

It works ! 

Thanks for your help !

- PierR