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