<feed xmlns='http://www.w3.org/2005/Atom'>
<title>lua-cjson/tests, branch 2.1.0.4</title>
<subtitle>A mirror of https://github.com/openresty/lua-cjson
</subtitle>
<id>https://git.lua4.win/lua-cjson/atom?h=2.1.0.4</id>
<link rel='self' href='https://git.lua4.win/lua-cjson/atom?h=2.1.0.4'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua-cjson/'/>
<updated>2016-03-03T18:54:53+00:00</updated>
<entry>
<title>feat: cjson.as_array metamethod to enforce empty array encoding</title>
<updated>2016-03-03T18:54:53+00:00</updated>
<author>
<name>Thibault Charbonnier</name>
<email>thibaultcha@me.com</email>
</author>
<published>2016-02-29T04:03:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua-cjson/commit/?id=7a9c25ee69f38974e99322971eace37ba1753074'/>
<id>urn:sha1:7a9c25ee69f38974e99322971eace37ba1753074</id>
<content type='text'>
A proposed improved patch of openresty/lua-cjson#1 (a patch commonly
proposed to lua-cjson and its forks), taking into considerations
comments from the original PR.

- use a lightuserdata key to store the metatable in the Lua Registry
  (more efficient and avoiding conflicts)
- provide a lightuserdata resulting in empty arrays as well
- tests cases moved to t/agentzh.t, where cases for
  'encode_empty_table_as_object' are already written. It seems like a
  better place for tests specific to the OpenResty fork's additions.
- a more complex test case
</content>
</entry>
<entry>
<title>feature: now we allow up to 16 decimal places in JSON number encoding via cjson.encode_number_precision().</title>
<updated>2015-11-04T14:37:29+00:00</updated>
<author>
<name>Brandon</name>
<email>lordnynex@gmail.com</email>
</author>
<published>2015-11-01T08:51:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua-cjson/commit/?id=f79aa68af865ae84b36c7e794beedd87fef2ed54'/>
<id>urn:sha1:f79aa68af865ae84b36c7e794beedd87fef2ed54</id>
<content type='text'>
thanks lordnynex for the patch in #4.

Test cases for changing precision
</content>
</entry>
<entry>
<title>tests: made the valgrind testing mode more obvious.</title>
<updated>2015-11-04T14:16:23+00:00</updated>
<author>
<name>Yichun Zhang (agentzh)</name>
<email>agentzh@gmail.com</email>
</author>
<published>2015-11-04T14:16:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua-cjson/commit/?id=fab1440c3268fa415d098ff37bf0f929eeb53844'/>
<id>urn:sha1:fab1440c3268fa415d098ff37bf0f929eeb53844</id>
<content type='text'>
</content>
</entry>
<entry>
<title>added one passing test.</title>
<updated>2014-03-31T23:44:59+00:00</updated>
<author>
<name>Yichun Zhang (agentzh)</name>
<email>agentzh@gmail.com</email>
</author>
<published>2014-03-31T23:44:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua-cjson/commit/?id=afcb87695c7e7c8a92d0a1452bdf02f82d0290fb'/>
<id>urn:sha1:afcb87695c7e7c8a92d0a1452bdf02f82d0290fb</id>
<content type='text'>
</content>
</entry>
<entry>
<title>feature: applied Jiale Zhi's patch to add the new config function encode_empty_table_as_object so that we can encode empty Lua tables into empty JSON arrays.</title>
<updated>2014-02-18T22:33:37+00:00</updated>
<author>
<name>Yichun Zhang (agentzh)</name>
<email>agentzh@gmail.com</email>
</author>
<published>2014-02-18T22:33:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua-cjson/commit/?id=cdb1a73615415e88ac8ef1b2eeec216fe72b9794'/>
<id>urn:sha1:cdb1a73615415e88ac8ef1b2eeec216fe72b9794</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Use Javascript compat values for Infinity/NaN</title>
<updated>2012-03-04T09:36:37+00:00</updated>
<author>
<name>Mark Pulford</name>
<email>mark@kyne.com.au</email>
</author>
<published>2012-03-03T00:18:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua-cjson/commit/?id=d5090bb8f19f4b0fd868a5f9af367ebbb67b7f5a'/>
<id>urn:sha1:d5090bb8f19f4b0fd868a5f9af367ebbb67b7f5a</id>
<content type='text'>
Use Javascript compatible values for Infinity/NaN when encoding invalid
numbers.
</content>
</entry>
<entry>
<title>Bump version to 2.1devel</title>
<updated>2012-03-04T08:24:36+00:00</updated>
<author>
<name>Mark Pulford</name>
<email>mark@kyne.com.au</email>
</author>
<published>2012-03-01T09:42:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua-cjson/commit/?id=5300ecb4e8f8ce9ec200b91c7273dae1947e431c'/>
<id>urn:sha1:5300ecb4e8f8ce9ec200b91c7273dae1947e431c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add cjson.safe module to suppress exceptions</title>
<updated>2012-03-04T08:24:36+00:00</updated>
<author>
<name>Mark Pulford</name>
<email>mark@kyne.com.au</email>
</author>
<published>2012-02-01T14:03:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua-cjson/commit/?id=95cbf2012ef273b13a494a2c66cef61c334d442f'/>
<id>urn:sha1:95cbf2012ef273b13a494a2c66cef61c334d442f</id>
<content type='text'>
Add cjson.safe module to suppress exceptions during JSON conversions.
</content>
</entry>
<entry>
<title>Bump version to 2.0devel</title>
<updated>2012-03-04T08:24:35+00:00</updated>
<author>
<name>Mark Pulford</name>
<email>mark@kyne.com.au</email>
</author>
<published>2012-01-19T14:06:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua-cjson/commit/?id=aaed0e6a8f1bdacb13f7d89f4eaea76c322edb65'/>
<id>urn:sha1:aaed0e6a8f1bdacb13f7d89f4eaea76c322edb65</id>
<content type='text'>
Bump version to 2.0devel due to significant changes and updated API
(runtime config not fully backwards compatible).
</content>
</entry>
<entry>
<title>Simplify string.format() calls</title>
<updated>2012-03-04T08:24:35+00:00</updated>
<author>
<name>Mark Pulford</name>
<email>mark@kyne.com.au</email>
</author>
<published>2012-01-19T13:06:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua-cjson/commit/?id=31bf122c1d1d9e3812b9ef2555d537f509ae3f05'/>
<id>urn:sha1:31bf122c1d1d9e3812b9ef2555d537f509ae3f05</id>
<content type='text'>
Simply string.format() calls with OO method notation.
</content>
</entry>
</feed>
