Code example for JSONObject

Methods: getStringhasisNull

	 *   IOException if there is any IO errors while parsing 
	private static DbusKeyFilter getDbusKeyFilter(JSONObject obj, ObjectMapper mapper)
	  throws JSONException, IOException 
		  String type = obj.getString(partitionTypeFieldName);
		  JSONArray array = null;
		  DbusKeyFilter configHolder = new DbusKeyFilter();
		  if (! obj.has(filterConfigFieldName) || obj.isNull(filterConfigFieldName))
			  return configHolder;
		  array = obj.getJSONArray(filterConfigFieldName);
		  ArrayList<DbusFilter> filters = new ArrayList<DbusFilter>();
Connect your IDE to all the code out there  Get Codota for Java