We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f37c2d6 commit 3c9573cCopy full SHA for 3c9573c
1 file changed
src/main/java/org/json/JSONArray.java
@@ -1242,12 +1242,12 @@ public JSONArray putAll(JSONArray array) {
1242
* Put an array's elements in to the JSONArray.
1243
*
1244
* @param array
1245
- * Array. If the parameter passed is null, or not an array, an
+ * Array. If the parameter passed is null, or not an array or Iterable, an
1246
* exception will be thrown.
1247
* @return this.
1248
1249
* @throws JSONException
1250
- * If not an array or if an array value is non-finite number.
+ * If not an array, JSONArray, Iterable or if an value is non-finite number.
1251
* @throws NullPointerException
1252
* Thrown if the array parameter is null.
1253
*/
0 commit comments