Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpx/lua-cjson.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2016-04-13Fix build with g++Mark Pulford
- Add explicit casts for functions returning void* - Rename "try" variable to avoid reserved C++ keyword
2012-03-04Update copyright date range to include 2012Mark Pulford
2011-12-30Remove strbuf:die() from global symbol tableMark Pulford
2011-05-29Add support for runtime number precision configMark Pulford
Add cjson.encode_number_precision(). Reducing the number precision from 14 to 3 can increase performance up to 50% with number heavy conversions.
2011-05-10Remove trailing whitespace1.0.1Mark Pulford
2011-05-10Add runtime option for persistent encode bufferMark Pulford
2011-05-02Add strbuf_append_number()Mark Pulford
The separate strbuf_append_number() function avoids a potential double call to the slow vsnprintf() function required by strbuf_append_fmt(). Also inline strbuf_append_mem() since it is very simple and will be used often.
2011-05-01Add MIT license and update lua_cjson.c caveatsMark Pulford
2011-04-30Create "cjson" Lua module, support UCS-2 escapesMark Pulford
- 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.
2011-04-25Grow decode stack, prealloc strings during encodeMark Pulford
- Check stack usage during decode to prevent crashing in excessively nested data structures. - Preallocate the required memory for json_append_string().
2011-04-24Add support for growing strbufs exponentiallyMark Pulford
- Change default to 1024 byte strings and doubling in size - Add strbuf debug statistics
2011-04-15Add functions for new strbuf API and tidyMark Pulford
- Support strbuf_free() when strbuf is not dynamically created. - Ensure strbuf_free_to_string() returns a null terminated string. - Tidy API function naming. - Add strbuf_append_string(), strbuf_string(). - Allocate initial buffer in strbuf_init().
2011-04-15Initial commitMark Pulford
Split Lua JSON from parent project to create standalone module. Remove unnecesssary files from new repo.