Skip to content

Commit

Permalink
fix(#901): add the jsonparserConfiguration param to avoid a stackover…
Browse files Browse the repository at this point in the history
…flow error
  • Loading branch information
hexetia authored Oct 5, 2024
1 parent 0d71dcf commit 14e9cdc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/json/JSONArray.java
Original file line number Diff line number Diff line change
Expand Up @@ -2001,7 +2001,7 @@ private void addAll(Object array, boolean wrap, int recursionDepth, JSONParserCo
// JSONArray
this.myArrayList.addAll(((JSONArray)array).myArrayList);
} else if (array instanceof Collection) {
this.addAll((Collection<?>)array, wrap, recursionDepth);
this.addAll((Collection<?>)array, wrap, recursionDepth, jsonParserConfiguration);
} else if (array instanceof Iterable) {
this.addAll((Iterable<?>)array, wrap);
} else {
Expand Down

0 comments on commit 14e9cdc

Please sign in to comment.