java/src/json/ext/Parser.rl in json_pure-1.7.5 vs java/src/json/ext/Parser.rl in json_pure-1.7.6

- old
+ new

@@ -54,11 +54,11 @@ private boolean quirksMode; private RubyClass objectClass; 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 private static final String CONST_NAN = "NaN"; private static final String CONST_INFINITY = "Infinity"; @@ -109,10 +109,10 @@ * * <dl> * <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>, * <code>Infinity</code> and <code>-Infinity</code> in defiance of RFC 4627 * to be parsed by the Parser. This option defaults to <code>false</code>.