summaryrefslogtreecommitdiff
path: root/manual.txt
diff options
context:
space:
mode:
authorMark Pulford <mark@kyne.com.au>2012-01-13 19:00:13 +1030
committerMark Pulford <mark@kyne.com.au>2012-03-04 18:54:34 +1030
commit93256124a6116e070f7857d9fe04bf6139dfbaee (patch)
tree264b6ab5de8aa87db51c42016b79286dc4c29fa3 /manual.txt
parent46ba498b003b1ac4898b8db39c9aea5158af093f (diff)
downloadlua-cjson-93256124a6116e070f7857d9fe04bf6139dfbaee.tar.gz
lua-cjson-93256124a6116e070f7857d9fe04bf6139dfbaee.tar.bz2
lua-cjson-93256124a6116e070f7857d9fe04bf6139dfbaee.zip
Change default nesting limits to 1000
Increase the default nesting limits to reduce the chance of accidently throwing an error on valid JSON out of the box.
Diffstat (limited to 'manual.txt')
-rw-r--r--manual.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/manual.txt b/manual.txt
index dce7090..85f3955 100644
--- a/manual.txt
+++ b/manual.txt
@@ -278,7 +278,7 @@ depth = cjson.decode_max_depth([depth])
278------------ 278------------
279 279
280By default, Lua CJSON will reject JSON with arrays and/or objects 280By default, Lua CJSON will reject JSON with arrays and/or objects
281nested more than 20 deep. 281nested more than 1000 deep.
282 282
283This setting is only changed when an argument is provided. The current 283This setting is only changed when an argument is provided. The current
284setting is always returned. 284setting is always returned.
@@ -372,7 +372,7 @@ This may not be required by some applications.
372By default, the following Lua values will generate errors: 372By default, the following Lua values will generate errors:
373 373
374- Numbers incompatible with the JSON specification (NaN, Infinity, Hexadecimal) 374- Numbers incompatible with the JSON specification (NaN, Infinity, Hexadecimal)
375- Tables nested more than 20 levels deep 375- Tables nested more than 1000 levels deep
376- Excessively sparse Lua arrays 376- Excessively sparse Lua arrays
377 377
378These defaults can be changed with: 378These defaults can be changed with:
@@ -441,7 +441,7 @@ depth = cjson.encode_max_depth([depth])
441-- "depth" must be a positive integer 441-- "depth" must be a positive integer
442------------ 442------------
443 443
444By default, Lua CJSON will reject data structures with more than 20 444By default, Lua CJSON will reject data structures with more than 1000
445nested tables. 445nested tables.
446 446
447This setting is only changed when an argument is provided. The current 447This setting is only changed when an argument is provided. The current