Code example for JSONArray

Methods: getBoolean, getDouble, getInt, getLong

0
	} 
	 
	private Object parseParam(JSONArray jsonParams, int index, String type) throws JSONException {
		 
		if ("int".equals(type) || "java.lang.Integer".equals(type)) {
			return jsonParams.getInt(index);
		} else if ("long".equals(type) || "java.lang.Long".equals(type)) {
			return jsonParams.getLong(index);
		} else if ("double".equals(type) || "java.lang.Double".equals(type)) {
			return jsonParams.getDouble(index);
		} else if ("boolean".equals(type) || "java.lang.Boolean".equals(type)) {
			return jsonParams.getBoolean(index);
		} else { 
			return jsonParams.getString(index);
		} 
		 
	} 
	 
	private String getAttributeValue(MBeanServer mBeanServer, String mBean, String attributeName) {
		 
		try {