Arun Gupta wrote:
> Where can I find an online version of Jettison JSON javadocs ?
>
> The following method in a resource:
>
> public JSONObject getJSONMessage() {
> try {
> return new JSONObject().put("greeting1", "Hello World");
> } catch (JSONException ex) {
> ex.printStackTrace();
> }
>
> return null;
> }
>
Hint, you can do the following:
public JSONObject getJSONMessage() throws JSONException {
return new JSONObject().put("greeting1", "Hello World");
}