aboutsummaryrefslogtreecommitdiff
path: root/LICENSE
diff options
context:
space:
mode:
authorMark Pulford <mark@kyne.com.au>2011-05-07 21:01:21 +0930
committerMark Pulford <mark@kyne.com.au>2011-05-07 21:01:21 +0930
commit3d014d14bcf3dce3e5dbb9c193d689e46d333798 (patch)
treeced2ed81700778d505b5992f15af8fb5659a44ff /LICENSE
parentd75e1cb7f0418615e208f49c6209b7c144591f14 (diff)
downloadlua-cjson-3d014d14bcf3dce3e5dbb9c193d689e46d333798.tar.gz
lua-cjson-3d014d14bcf3dce3e5dbb9c193d689e46d333798.tar.bz2
lua-cjson-3d014d14bcf3dce3e5dbb9c193d689e46d333798.zip
Rework runtime config options
- Rename API for consistency: - sparse_ratio() -> encode_sparse_array() - max_depth() -> encode_max_depth() - invalid_numbers() -> refuse_invalid_numbers() - Adjust sparse array handling: - Add "safe" option to allow small sparse arrays regardless of the ratio. - Generate an error by default instead of converting an array into an object (POLA). - Update invalid number handling: - Allow decoding invalid numbers by default since many JSON implementations output NaN/Infinity. - Throw an error by default when attempting to encode NaN/Infinity since the RFC explicitly states it is not permitted. - Support specifying invalid number configuration separately for encode/decode.
Diffstat (limited to 'LICENSE')
0 files changed, 0 insertions, 0 deletions