diff options
Diffstat (limited to 'java/src')
-rw-r--r-- | java/src/json/ext/Parser.java | 2 | ||||
-rw-r--r-- | java/src/json/ext/Parser.rl | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/java/src/json/ext/Parser.java b/java/src/json/ext/Parser.java index 49e5315..ab3585e 100644 --- a/java/src/json/ext/Parser.java +++ b/java/src/json/ext/Parser.java @@ -113,7 +113,7 @@ public class Parser extends RubyObject { * <dt><code>:max_nesting</code> * <dd>The maximum depth of nesting allowed in the parsed data * structures. Disable depth checking with <code>:max_nesting => false|nil|0</code>, - * it defaults to 19. + * it defaults to 100. * * <dt><code>:allow_nan</code> * <dd>If set to <code>true</code>, allow <code>NaN</code>, diff --git a/java/src/json/ext/Parser.rl b/java/src/json/ext/Parser.rl index 73062cf..e26637d 100644 --- a/java/src/json/ext/Parser.rl +++ b/java/src/json/ext/Parser.rl @@ -56,7 +56,7 @@ public class Parser extends RubyObject { private RubyClass arrayClass; private RubyHash match_string; - private static final int DEFAULT_MAX_NESTING = 19; + private static final int DEFAULT_MAX_NESTING = 100; private static final ByteList JSON_MINUS_INFINITY = new ByteList(ByteList.plain("-Infinity")); // constant names in the JSON module containing those values @@ -111,7 +111,7 @@ public class Parser extends RubyObject { * <dt><code>:max_nesting</code> * <dd>The maximum depth of nesting allowed in the parsed data * structures. Disable depth checking with <code>:max_nesting => false|nil|0</code>, - * it defaults to 19. + * it defaults to 100. * * <dt><code>:allow_nan</code> * <dd>If set to <code>true</code>, allow <code>NaN</code>, |