Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Create "cjson" Lua module, support UCS-2 escapes | Mark Pulford | 2011-05-01 | 1 | -726/+0 |
| | | | | | | | | | | - Convert lua_json_init() into luaopen_cjson() to support dynamic .so loading. - Rename "json" to "cjson" to reduce conflicts with other JSON modules. - Remove unnecessary *_pcall_* API. Lua calls are fast enough, even through C. - Encode empty tables as objects - Add support for decoding all UCS-2 escape codes. | ||||
* | Update lua_json pcall API naming convention | Mark Pulford | 2011-04-26 | 1 | -5/+8 |
| | |||||
* | Move verify_arg_count() into lua_json.c | Mark Pulford | 2011-04-26 | 1 | -4/+9 |
| | |||||
* | Grow decode stack, prealloc strings during encode | Mark Pulford | 2011-04-25 | 1 | -13/+21 |
| | | | | | | - Check stack usage during decode to prevent crashing in excessively nested data structures. - Preallocate the required memory for json_append_string(). | ||||
* | Move global table init into lua_json | Mark Pulford | 2011-04-25 | 1 | -2/+9 |
| | |||||
* | Tidy Lua arg count verification | Mark Pulford | 2011-04-25 | 1 | -3/+3 |
| | |||||
* | Add support for growing strbufs exponentially | Mark Pulford | 2011-04-25 | 1 | -4/+2 |
| | | | | | - Change default to 1024 byte strings and doubling in size - Add strbuf debug statistics | ||||
* | Initialise lua_json lookup tables once (globally) | Mark Pulford | 2011-04-16 | 1 | -3/+1 |
| | |||||
* | Improve exception handling in lua_json | Mark Pulford | 2011-04-16 | 1 | -21/+60 |
| | | | | | - Add json_encode_exception() - Update to throw exceptions during encoding | ||||
* | Merge lua_json_encode/decode.c into lua_json.c | Mark Pulford | 2011-04-15 | 1 | -0/+668 |