summaryrefslogtreecommitdiff
path: root/TODO (unfollow)
Commit message (Collapse)AuthorFilesLines
2011-05-29Update performance.txt for 1.0.2Mark Pulford1-34/+43
2011-05-29Use a benchmark duration, not interation countMark Pulford1-2/+12
Roughly calculate the number of iterations required to run the benchmark for the chosen duration.
2011-05-29Update TODOMark Pulford1-2/+8
2011-05-29Document building via LuaRocksMark Pulford1-4/+26
2011-05-29Add trivial types.json exampleMark Pulford2-0/+3
2011-05-29Display CJSON library version when testingMark Pulford1-1/+3
2011-05-29Update version to 1.0.2Mark Pulford5-9/+23
2011-05-29Add support for runtime number precision configMark Pulford5-17/+77
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-29Use .zip format with LuaRocksMark Pulford2-1/+3
Windows has poor support for "tar.gz", but all platforms support "zip".
2011-05-16Change version number for developmentMark Pulford2-2/+2
2011-05-16Test module with invalid numbers enabledMark Pulford1-2/+1
2011-05-16Add support for stdin to encode.lua/decode.luaMark Pulford3-20/+42
2011-05-16Use Perl builtin UTF-8 support, not Text::IconvMark Pulford1-7/+13
Remove Perl dependency on Text::Iconv to improve portability.
2011-05-16Move all benchmark code into bench.luaMark Pulford2-39/+34
Move benchmark() into bench.lua since it not used elsewhere. Replace posix.gettimeofday() with socket.gettime() to improve portability.
2011-05-16Remove invalid newlines from JSON examplesMark Pulford2-8/+4
2011-05-16Add command line encode/decode utilitiesMark Pulford2-0/+37
2011-05-16Warn that a failed NaN test may not be an errorMark Pulford2-3/+9
Sprintf returns "-nan" rather than "nan" on some platforms, which causes the test script to incorrectly flag a failure. Also allow test functions without "==> Config" output.
2011-05-15Add rockspec to build under LuaRocksMark Pulford2-1/+31
Remove "-lm" from LDFLAGS in Makefile since it breaks the build under Windows and isn't required under Linux. Math lib fix suggested by: Steve Donovan <steve.j.donovan@gmail.com>
2011-05-10Remove trailing whitespace1.0.1Mark Pulford6-20/+20
2011-05-10Add stack overflow fix to NEWSMark Pulford1-1/+2
2011-05-10run_test_group(): Change helper functions to localMark Pulford1-2/+2
2011-05-10Add runtime option for persistent encode bufferMark Pulford7-19/+75
2011-05-10Suspend the garbage collector during benchmarksMark Pulford1-1/+2
Suspending GC appears to make the benchmark results more consistent.
2011-05-10Fix memory leak when throwing stack overflow errorMark Pulford1-2/+11
json->tmp was not freed when throwing a Lua stack overflow exception.
2011-05-10Remove whitespace from generated JSON outputMark Pulford3-13/+14
Remove excess whitespace to reduce output size and increase encode performance. Suggested by: Zhang "agentzh" Yichun <agentzh@gmail.com>
2011-05-10Add extra encoding/nesting testsMark Pulford3-10/+45
- Use pcall() to call test config functions. - Test encoding with refuse_invalid_numbers() options. - Test encoding invalid types.
2011-05-10Add support for perl installs outside of /usr/binMark Pulford1-1/+2
Change "perl -w" to "use warnings" for compatibility with systems that put all #! args into argv[1].
2011-05-10Update version to 1.0.1Mark Pulford5-8/+10
2011-05-10Add build support for Mac OSXMark Pulford1-1/+11
2011-05-09Add TODO file1.0Mark Pulford2-1/+8
2011-05-09Tidy and reformat lua_cjson.c (minor)Mark Pulford1-12/+9
2011-05-08Add changelog (NEWS)Mark Pulford2-1/+3
2011-05-08Add documentation (README)Mark Pulford2-1/+212
2011-05-08Add test for excessive nesting during encodeMark Pulford2-6/+16
2011-05-08Add NaN/Inf encoding tests, rearrange test orderMark Pulford1-71/+74
2011-05-08Generate error when attempting to decode UTF-16/32Mark Pulford2-0/+12
2011-05-08Add UTF-16 surrogate pair decode supportMark Pulford5-11/+149
- Add tests for UTF-16 decoding and failures - Add getutf8.pl to assist with UTF-16 decode testing - Re-add test_decode_cycle() which was accidentally removed earlier - Rename bytestring.dat to octets-escaped.dat
2011-05-08Test octect encode/decode separatelyMark Pulford2-24/+9
2011-05-08Convert tests to automatically verify outputMark Pulford1-106/+107
2011-05-08Implement data driven test frameworkMark Pulford3-29/+158
- Add run_test(): Test a function and verify its output - Add run_test_group(): Execute a test batch - Add serialise_value(): Serialise a Lua value into the Lua syntax - Add file_save() helper function - Add NaN comparison support to compare_values()
2011-05-07Rework runtime config optionsMark Pulford1-56/+118
- Rename API for consistency: - sparse_ratio() -> encode_sparse_array() - max_depth() -> encode_max_depth() - invalid_numbers() -> refuse_invalid_numbers() - Adjust sparse array handling: - Add "safe" option to allow small sparse arrays regardless of the ratio. - Generate an error by default instead of converting an array into an object (POLA). - Update invalid number handling: - Allow decoding invalid numbers by default since many JSON implementations output NaN/Infinity. - Throw an error by default when attempting to encode NaN/Infinity since the RFC explicitly states it is not permitted. - Support specifying invalid number configuration separately for encode/decode.
2011-05-07Add test to compare objects after decode/encodeMark Pulford2-3/+40
2011-05-07Escape forward slash when encodingMark Pulford1-1/+1
Escaping forward slash can be useful when including JSON output in HTML (Eg, embedded in SCRIPT tags).
2011-05-05Fix strbuf_t leak on lua_close()Mark Pulford1-3/+20
- Add __gc metatable method to clean up json_config_t userdata.
2011-05-05Add tests directory to RPM %doc installMark Pulford1-1/+1
2011-05-04Add benchmark results (performance.txt)Mark Pulford2-1/+43
2011-05-04Document permission received to use examplesMark Pulford1-0/+2
Douglas Crockford <douglas@crockford.com> has given permission for these examples to be used. Message-ID: <4DC01FB7.8090001@crockford.com> Date: Tue, 03 May 2011 08:31:03 -0700 From: Douglas Crockford To: Mark Pulford Subject: Re: JSON examples
2011-05-03Add basic JSON tests and benchmarkMark Pulford11-0/+465
2011-05-03Generate parse error for invalid leading zerosMark Pulford1-8/+17
2011-05-03Preallocate temporary decode string bufferMark Pulford2-11/+20
The preallocated buffer removes the need for buffer length checks while processing strings and results in a 10 - 15% speedup.