Java Code Examples for net.sf.json.JSONException#printStackTrace()
The following examples show how to use
net.sf.json.JSONException#printStackTrace() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ConceptMapping.java From Criteria2Query with Apache License 2.0 | 5 votes |
public static JSONObject formatOneitem(Integer conceptId){ JSONObject jo=new JSONObject(); try { jo.put("conceptId", conceptId); jo.put("isExcluded", 0); jo.put("includeDescendants", 1);// jo.put("includeMapped", 0);// } catch (JSONException e) { // TODO Auto-generated catch block e.printStackTrace(); } return jo; }
Example 2
Source File: OHDSIApis.java From Criteria2Query with Apache License 2.0 | 5 votes |
public static JSONObject formatOneitem(Integer conceptId){ JSONObject jo=new JSONObject(); try { jo.put("conceptId", conceptId); jo.put("isExcluded", 0); jo.put("includeDescendants", 1);// jo.put("includeMapped", 0);// } catch (JSONException e) { // TODO Auto-generated catch block e.printStackTrace(); } return jo; }