aboutsummaryrefslogtreecommitdiff
path: root/LICENSE
diff options
context:
space:
mode:
authorMark Pulford <mark@kyne.com.au>2011-05-03 00:58:57 +0930
committerMark Pulford <mark@kyne.com.au>2011-05-03 00:58:57 +0930
commitec18dfc358cc4391eec3a37bdb81fe8d5a8b3d69 (patch)
tree455261ec3b9bbebab54d2c6a27b40ea544c92389 /LICENSE
parenta9bb5006d228539a1ec5028df7f660f862b0f2cc (diff)
downloadlua-cjson-ec18dfc358cc4391eec3a37bdb81fe8d5a8b3d69.tar.gz
lua-cjson-ec18dfc358cc4391eec3a37bdb81fe8d5a8b3d69.tar.bz2
lua-cjson-ec18dfc358cc4391eec3a37bdb81fe8d5a8b3d69.zip
Escape all unprintable ASCII when encoding
Replace json_escape_char() with a static char2escape[] lookup table. Escape all unprintable ASCII (0-31, 127) and JSON special characters (double quote, backslash). Dynamic creation of the char2escape table has been left commented out due to an apparent performance hit. The performance loss may be due to memory/page alignment (unknown). Rename parsing lookup table from ch2escape to escape2char for consistency.
Diffstat (limited to 'LICENSE')
0 files changed, 0 insertions, 0 deletions