|
@@ -201,6 +201,11 @@ public class JSONObject
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ public JSONArray getJSONArrayValue(String key, JSONArray defaultvalue) {
|
|
|
|
|
+ JSONArray jsonArray = getJSONArray(key);
|
|
|
|
|
+ return jsonArray == null ? defaultvalue : jsonArray;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* Returns the {@link JSONArray} of the associated keys in this {@link JSONObject}.
|
|
* Returns the {@link JSONArray} of the associated keys in this {@link JSONObject}.
|
|
|
*
|
|
*
|