public Object getElement(String key) { Object obj = null; try { obj = document.get(key); } catch (JSONException e) { // TODO Auto-generated catch block e.printStackTrace(); } return obj; }