File: index.md

package info (click to toggle)
lua-sandbox-extensions 0~git20161128-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 2,596 kB
  • ctags: 1,458
  • sloc: ansic: 4,402; cpp: 2,102; makefile: 8
file content (10 lines) | stat: -rw-r--r-- 655 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
# Lua CJSON Module

[CJSON](http://www.kyne.com.au/~mark/software/lua-cjson-manual.html) parser with the following modifications:
- Loads the cjson module in a global cjson table
- The encode buffer is limited to the sandbox output_limit.
- The decode buffer will be roughly limited to one half of the sandbox memory_limit.
- The NULL value is not decoded to cjson.null it is simply discarded.
  If the original behavior is desired use cjson.decode_null(true) to enable NULL decoding.
- The new() function has been disabled so only a single cjson parser can be created.
- The encode_keep_buffer() function has been disabled (the buffer is always reused).