<feed xmlns='http://www.w3.org/2005/Atom'>
<title>lua-cjson/tests/agentzh.t, branch or-1.31.0</title>
<subtitle>A mirror of https://github.com/openresty/lua-cjson
</subtitle>
<id>https://git.lua4.win/lua-cjson/atom?h=or-1.31.0</id>
<link rel='self' href='https://git.lua4.win/lua-cjson/atom?h=or-1.31.0'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua-cjson/'/>
<updated>2024-06-11T01:39:55+00:00</updated>
<entry>
<title>feature: Lua 5.3 + 5.4 integer support, with CI and conflicts fixed.</title>
<updated>2024-06-11T01:39:55+00:00</updated>
<author>
<name>Hisham Muhammad</name>
<email>hisham@gobolinux.org</email>
</author>
<published>2024-06-11T01:39:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua-cjson/commit/?id=c92ecda53337490633c95e6ae00e322dc9ad1fb8'/>
<id>urn:sha1:c92ecda53337490633c95e6ae00e322dc9ad1fb8</id>
<content type='text'>
Co-Authored-By: Hisham Muhammad &lt;hisham@gobolinux.org&gt;
Co-authored-by: Mark Pulford &lt;mark@kyne.com.au&gt;
Co-authored-by: ichenq &lt;ichenq@gmail.com&gt;
Co-authored-by: Cloud Wu &lt;cloudwu@gmail.com&gt;
Co-authored-by: caijietao &lt;t0350.prog@gmail.com&gt;
Co-authored-by: actboy168 &lt;actboy168@gmail.com&gt;
Co-authored-by: wudeng &lt;wudeng256@gmail.com&gt;
Co-authored-by: caiyiheng &lt;rangercyh@qq.com&gt;</content>
</entry>
<entry>
<title>feature: Add option to skip invalid value types. </title>
<updated>2023-02-22T03:28:15+00:00</updated>
<author>
<name>lijunlong</name>
<email>lijunlong@openresty.com</email>
</author>
<published>2023-02-22T03:28:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua-cjson/commit/?id=de93a78d3002ee72bb1c7e3a629d67e19623a4ae'/>
<id>urn:sha1:de93a78d3002ee72bb1c7e3a629d67e19623a4ae</id>
<content type='text'>
Co-authored-by: Jesper Lundgren &lt;jesperlundgren@exosite.com&gt;</content>
</entry>
<entry>
<title>write sort_json, use it on perl tests to prevent hash table ordering failures</title>
<updated>2020-04-25T21:24:18+00:00</updated>
<author>
<name>leaf corcoran</name>
<email>leafot@gmail.com</email>
</author>
<published>2019-09-22T20:21:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua-cjson/commit/?id=461c7ef23a49062d4b1bf0e1afb3be294d007861'/>
<id>urn:sha1:461c7ef23a49062d4b1bf0e1afb3be294d007861</id>
<content type='text'>
</content>
</entry>
<entry>
<title>feature: add option to disable forward slash escaping</title>
<updated>2020-03-24T01:03:48+00:00</updated>
<author>
<name>Jesper Lundgren</name>
<email>jesperlundgren@exosite.com</email>
</author>
<published>2020-03-09T08:12:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua-cjson/commit/?id=0df488874f52a881d14b5876babaa780bb6200ee'/>
<id>urn:sha1:0df488874f52a881d14b5876babaa780bb6200ee</id>
<content type='text'>
Thanks @spacewander for optimization and documentation.
</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>
</feed>
