Code example for ParseException

Methods: getMessage

0
		String val = (String)request.getEvent().getValue();
		org.json.JSONObject jso = null;
		try { 
			jso = new org.json.JSONObject(val);
		} catch (ParseException e) {
			LfwLogger.error(e.getMessage(), e);
		} 
		if(jso == null)
			return; 
		String title = jso.getString("title");
		String url = jso.getString("url");
		response.setRenderParameter("title", title);
		response.setRenderParameter("url", url);
	} 
}