mirror of
https://github.com/stleary/JSON-java.git
synced 2025-08-03 03:15:32 -04:00
fix(#901): add the jsonparserConfiguration param to avoid a stackoverflow error
This commit is contained in:
parent
0d71dcf713
commit
14e9cdc485
@ -2001,7 +2001,7 @@ public class JSONArray implements Iterable<Object> {
|
|||||||
// JSONArray
|
// JSONArray
|
||||||
this.myArrayList.addAll(((JSONArray)array).myArrayList);
|
this.myArrayList.addAll(((JSONArray)array).myArrayList);
|
||||||
} else if (array instanceof Collection) {
|
} else if (array instanceof Collection) {
|
||||||
this.addAll((Collection<?>)array, wrap, recursionDepth);
|
this.addAll((Collection<?>)array, wrap, recursionDepth, jsonParserConfiguration);
|
||||||
} else if (array instanceof Iterable) {
|
} else if (array instanceof Iterable) {
|
||||||
this.addAll((Iterable<?>)array, wrap);
|
this.addAll((Iterable<?>)array, wrap);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user