Code example for JSONObject

Methods: optBoolean

0
	{ 
		if (deployData == null) {
			return false; 
		} 
 
		return deployData.optBoolean(PROFILER_ENABLED, false);
	} 
 
	/** 
	 * @return The profiler server port, or -1 
	 */ 
	public int getProfilerPort() 
	{ 
		if (deployData == null) {
			return -1; 
		} 
 
		return deployData.optInt(PROFILER_PORT, -1);
	} 
 
Contextual code suggestions in your IDE  Get Codota for Java