<feed xmlns='http://www.w3.org/2005/Atom'>
<title>lua-cjson/tests, branch 2.1.0.7rc2</title>
<subtitle>A mirror of https://github.com/openresty/lua-cjson
</subtitle>
<id>https://git.lua4.win/lua-cjson/atom?h=2.1.0.7rc2</id>
<link rel='self' href='https://git.lua4.win/lua-cjson/atom?h=2.1.0.7rc2'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua-cjson/'/>
<updated>2018-04-19T19:03:43+00:00</updated>
<entry>
<title>bumped version to 2.1.0.6.</title>
<updated>2018-04-19T19:03:43+00:00</updated>
<author>
<name>Yichun Zhang (agentzh)</name>
<email>agentzh@gmail.com</email>
</author>
<published>2018-04-19T19:03:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua-cjson/commit/?id=a03094c5473d9a9764bb486fbe5e99a62d166dae'/>
<id>urn:sha1:a03094c5473d9a9764bb486fbe5e99a62d166dae</id>
<content type='text'>
</content>
</entry>
<entry>
<title>feature: set cjson.array_mt on decoded JSON arrays.</title>
<updated>2017-11-17T19:46:46+00:00</updated>
<author>
<name>Thibault Charbonnier</name>
<email>thibaultcha@me.com</email>
</author>
<published>2017-08-05T22:19:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua-cjson/commit/?id=b5e364c7c60167995944ed3a3b9c54d9a377fc1d'/>
<id>urn:sha1:b5e364c7c60167995944ed3a3b9c54d9a377fc1d</id>
<content type='text'>
this can be turned on via cjson.decode_array_with_array_mt(true). off by
default.

Signed-off-by: Yichun Zhang (agentzh) &lt;agentzh@gmail.com&gt;
</content>
</entry>
<entry>
<title>feature: added new cjson.array_mt metatable to allow enforcing JSON array encoding.</title>
<updated>2017-11-16T04:41:57+00:00</updated>
<author>
<name>Thibault Charbonnier</name>
<email>thibaultcha@me.com</email>
</author>
<published>2017-07-09T04:54:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua-cjson/commit/?id=5f9efa4829a72935ddcd40c7da6b1a9e10939b65'/>
<id>urn:sha1:5f9efa4829a72935ddcd40c7da6b1a9e10939b65</id>
<content type='text'>
Signed-off-by: Yichun Zhang (agentzh) &lt;agentzh@gmail.com&gt;
</content>
</entry>
<entry>
<title>tests: now we use luajit to run the test suite.</title>
<updated>2017-11-16T04:23:23+00:00</updated>
<author>
<name>Yichun Zhang (agentzh)</name>
<email>agentzh@gmail.com</email>
</author>
<published>2017-11-16T04:23:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua-cjson/commit/?id=efd56ddb9f4571afbd3232672efd7ff4da3beae5'/>
<id>urn:sha1:efd56ddb9f4571afbd3232672efd7ff4da3beae5</id>
<content type='text'>
</content>
</entry>
<entry>
<title>bugfix: preserve 'empty_array_mt' behavior upon multiple loadings of the module.</title>
<updated>2016-12-18T04:14:47+00:00</updated>
<author>
<name>Thibault Charbonnier</name>
<email>thibaultcha@me.com</email>
</author>
<published>2016-12-17T02:27:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua-cjson/commit/?id=a61d7840ba2d79df8cb73d8c864a99d0eb06d580'/>
<id>urn:sha1:a61d7840ba2d79df8cb73d8c864a99d0eb06d580</id>
<content type='text'>
Prior to this fix, when the module would be loaded several times
(by-passing `package.loaded`), the `lua_cjson_new` function would
override the `empty_array_mt` table in the registry with a new one.
Comparison for equality between those tables would then fail, and the
behavior would be broken.

This was discovered after loading `cjson` *and* `cjson.safe` in the same
application, resulting in two calls to `lua_cjson_new`.

Signed-off-by: Yichun Zhang (agentzh) &lt;agentzh@gmail.com&gt;
</content>
</entry>
<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>
</feed>
