| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| |
| |
| |
| |
| |
| |
| | |
- Always report the correct index of the token error.
- Use value.string to report what was found instead of just T_ERROR.
- Fix inverted unicode escape error detection.
|
| |
| |
| |
| |
| |
| |
| | |
Allow maximum nesting depth and sparse array ratio to be configured at
runtime via the sparse_ratio() and max_depth() functions.
Throw exceptions when encoding excessively nested structures.
|
| |
| |
| |
| |
| |
| |
| | |
Detect and encode very sparse arrays as objects. This prevents something
like:
{ [1000000] = "nullfest" }
..from generating a huge array.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
- 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.
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| | |
- Check stack usage during decode to prevent crashing in excessively
nested data structures.
- Preallocate the required memory for json_append_string().
|
| | |
|
| | |
|
| |
| |
| |
| |
| | |
- Change default to 1024 byte strings and doubling in size
- Add strbuf debug statistics
|
| | |
|
| |
| |
| |
| |
| | |
- Add json_encode_exception()
- Update to throw exceptions during encoding
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| | |
- 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().
|
|/
|
|
|
| |
Split Lua JSON from parent project to create standalone module.
Remove unnecesssary files from new repo.
|
|
|