2930313233343536373839
if(activity != null) { writer.value(activity.toJSON()); } else { writer.value(null); } writer.endObject(); } catch(JSONException e) { resp.getWriter().println("{\"activity\":null}"); } } }