> On 16 Sep 2016, at 17:58, Jörg Richter <[email protected]> wrote: > > // this constructor is invoked by DM4 Webservice / JAX-RS > public EditablePerson(JSONObject json) throws JSONException { > this.firstName = json.getString("firstName"); > this.lastName = json.getString("lastName"); > }
Note also that in your JSON-constructor you're not required to handle the JSONException yourself. You just can declare it. It is handled my DM's JAX-RS providers then (see ObjectProvider in module dm4-webservice). Cheers, Jörg
signature.asc
Description: Message signed with OpenPGP using GPGMail
-- devel mailing list [email protected] http://lists.deepamehta.de/mailman/listinfo/devel-lists.deepamehta.de
