Skip to content

Commit

Permalink
[java] increased the maximum depth of generated json
Browse files Browse the repository at this point in the history
  • Loading branch information
joerg1985 committed Aug 21, 2023
1 parent 692d228 commit 2651833
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion java/src/org/openqa/selenium/json/JsonOutput.java
Expand Up @@ -48,7 +48,7 @@

public class JsonOutput implements Closeable {
private static final Logger LOG = Logger.getLogger(JsonOutput.class.getName());
static final int MAX_DEPTH = 10;
static final int MAX_DEPTH = 100;

private static final Predicate<Class<?>> GSON_ELEMENT;

Expand Down
2 changes: 1 addition & 1 deletion java/src/org/openqa/selenium/remote/NewSessionPayload.java
Expand Up @@ -123,7 +123,7 @@ public static NewSessionPayload create(Map<String, ?> source) {
Require.precondition(
source.containsKey("capabilities"), "New session payload must contain capabilities");

String json = new Json().toJson(Require.nonNull("Payload", source), 100);
String json = new Json().toJson(Require.nonNull("Payload", source));
return new NewSessionPayload(new StringReader(json));
}

Expand Down

0 comments on commit 2651833

Please sign in to comment.