aboutsummaryrefslogtreecommitdiff
path: root/tests/encode.lua (unfollow)
Commit message (Collapse)AuthorFilesLines
2011-12-15Rewrite cjson.encode_sparse_array documentationMark Pulford1-29/+25
2011-12-15Clean up build options documentation in manualMark Pulford1-8/+7
2011-12-15Automate package releases with build-packages.shMark Pulford8-29/+82
build-packages.sh has several advantages: - Automatically bumps version numbers - Builds HTML documentation on the fly
2011-12-14Remove quirks section from manualMark Pulford1-74/+55
Merge quirks section into: - Build overview (locales) - API docs Add API section for variables.
2011-12-13Add support for building via CMakeMark Pulford2-0/+57
2011-12-13Update build testing to show test counts/failuresMark Pulford3-7/+28
Display failed tests, and successful/total test counts. Use "awk" to provide a portable "ggrep -E" with context.
2011-12-13Order API functions in manual alphabeticallyMark Pulford1-81/+81
2011-12-13Remove external VERSION #define for lua_cjson.cMark Pulford3-5/+9
The external #define complicates compilation but is only used in lua_cjson.c and Makefile.
2011-12-13Ensure build tests only use the current cjson.soMark Pulford1-6/+13
Update runtests.sh to exit if an old copy of cjson.so is found.
2011-12-13Add automatic RPM build testingMark Pulford1-1/+17
2011-12-13Fix RPM buildMark Pulford1-2/+2
Previously the the RPM build would overwrite CJSON_CFLAGS but didn't provide the necessary default CFLAGS (-fpic -DVERSION ..).
2011-12-12Convert documentation to AsciiDocMark Pulford5-330/+468
- Rename README to manual.txt and add AsciiDoc markup - Rewrite some sections of documentation (more outstanding) - Add "doc" Makefile target - Update RPM spec file to include HTML output
2011-12-08Fix Makefile for use with non-GNU makeMark Pulford5-36/+38
- Remove GNU make "override" statements. - Add OBJS variable since there is no portable way to specify all targets for linking. Also: - Put build defaults at the top to avoid potential confusion. - Don't assume a Linux platform. Default to USE_POSIX_SETLOCALE. - Change "install -d" to mkdir/install since the former isn't available on some platforms (Solaris).
2011-12-08Silence genutf8.pl warnings across Perl versionsMark Pulford1-14/+5
- Use Perl filehandles directly since IO::Handle generates unicode warnings that can't be silenced. - Disable all warnings since the specific "nonchar" warning only exists in newer versions.
2011-11-30Update NEWS for 1.0.4 release1.0.4Mark Pulford1-2/+2
2011-11-29Add automated build testing (LuaRocks, Makefile)Mark Pulford2-1/+46
2011-11-29Add workaround to handle platforms that print -nanMark Pulford2-10/+11
2011-11-29Remove unused escape table init codeMark Pulford1-26/+0
2011-11-29Suppress isinf() define when it already existsMark Pulford1-2/+2
2011-11-29Add platform specific overrides to rockspecMark Pulford2-1/+21
Luarocks does not support a "solaris" platform - USE_INTERNAL_ISINF must stay commented.
2011-11-29Add common platform defaults/overrides to MakefileMark Pulford1-19/+19
2011-11-29Improve README documentation (minor)Mark Pulford1-11/+10
2011-11-29Improve build documentation and layoutMark Pulford3-25/+40
2011-11-27Update version to 1.0.4Mark Pulford4-8/+11
2011-11-27Update THANKS for locale bug reporterMark Pulford1-0/+1
2011-10-07Add USE_POSIX_SETLOCALE optionMark Pulford5-13/+52
Add USE_POSIX_SETLOCALE option for platforms missing uselocale(). Document locale options in README, Makefile & rockspec. Also: - Rename USE_POSIX_LOCALE define to USE_POSIX_USELOCALE. - Use uselocale() by default through Makefile (Linux, OSX). - Use setlocale() by default through rockspec (other platforms).
2011-10-07Rename MISSING_ISINF to USE_INTERNAL_ISINFMark Pulford4-5/+8
2011-10-05Support locales which use comma decimal separatorsMark Pulford5-3/+79
Some locales (cs_CZ, de_DE,..) use a comma as their decimal separator. This causes CJSON to generate incorrect JSON (Eg, [10,1]), and fail when parsing some valid JSON (Eg, [10,"test"]). Added USE_POSIX_LOCALE #define which harnesses the thread-safe POSIX.1-2008 locale support (newlocale(), uselocale(), freelocale()) to temporarily use the POSIX locale during JSON conversion. Some older POSIX operating systems with xlocale.h (MacOSX) are also supported.
2011-10-05Fix out of date comment (json_config_key)Mark Pulford1-1/+1
2011-09-15Add release notes for 1.0.31.0.3Mark Pulford2-1/+5
Also update release date in RPM spec file.
2011-09-15Add limitations section to documentationMark Pulford1-35/+89
Improve text for clarity.
2011-09-15Update comment to match docs (very -> excessively)Mark Pulford1-1/+1
2011-08-18Update TODOMark Pulford1-7/+1
2011-08-12Added THANKS fileMark Pulford2-1/+9
Louis-Philippe Perron (@loopole) - Mac OSX bug report Steve Donovan <steve.j.donovan@gmail.com> - Window build testing - Luarocks assistance Zhang "agentzh" Yichun <agentzh@gmail.com> - Whitespace suggestion - Solaris isinf() bug - Array detection bug
2011-08-11Add work around for missing isinf() on SolarisMark Pulford3-0/+10
Some versions of Solaris (Eg, Solaris 11 / GCC 3.4.3) are missing isinf(). Provide a work around when MISSING_ISINF is defined. Reported by: Zhang "agentzh" Yichun <agentzh@gmail.com>
2011-08-10Update version to 1.0.3Mark Pulford4-8/+11
2011-08-10Fix detection of objects with numeric string keysMark Pulford2-3/+4
lua_array_length() recognised some objects with numeric string keys as arrays since it was incorrectly using lua_isnumber(). When an object was incorrectly recognised as an array, json_append_array() would not find any entries and generate a result like: [null,null,...] Reported by: Zhang "agentzh" Yichun <agentzh@gmail.com>
2011-06-21Change RPM spec to use tar.gzMark Pulford1-1/+1
2011-05-29Simplify RPM package description1.0.2Mark Pulford1-3/+2
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