-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
changing cjson dependency to another json library #6
Comments
Do you have a particular one in mind? |
Actually, I've not benchmarked them, but https://github.com/harningt/luajson looks at least alive ;) |
@msva Why do you say cjson is not 5.3 compatible? There is a version in LuaRocks, called lua-cjson, which works well with 5.3 for me. All raven-lua tests pass using it. That being said, luajson is almost completely compatible with cjson. All tests pass using it as well. Supporting it in addition to cjson would be a good idea, especially for environments where you cannot use C modules (luajson is pure Lua). This can easily be done by replacing
|
@catwell I didn't say cjson isn't compatible with 5.3. |
Actually the one in LuaRocks is the one from @mpx and it is compatible with 5.3, except that it decodes integers to Lua floating point numbers, but that isn't such a big issue IMO. |
@catwell doubt it:
So, there is definitely some fork. @calio, btw, I've found https://github.com/bungle/lua-resty-libcjson (same on LR). Looks neat. |
@msva Being on the "luarocks" account just means it wasn't adopted by its author since the move to moonrocks. The rockspec makes it clear it is not a fork. The release is from March 2012 but it still works with Lua 5.3.
|
Talking about original message in the issue, I said "@mpx one is abandoned, and @openresty fork - has no 5.2/5.3 compatibility) :) // btw, by default, CMake there, in @mpx repo, has issues with finding (and linking against) luajit. Which I (kinda) fixed. |
The OpenResty fork has the same 5.3 compatibility as the @mpx version: it just does not have special code for integers and considers them as doubles. So it works exactly the same as with 5.2. The only differences between the OpenResty fork and the original are:
If the mpx version is abandonned we will just replace it with the OpenResty version in LuaRocks. Also it looks like OpenResty will merge your PR. |
Hi there!
Original lua-cjson library seems to be abandoned by @mpx (he has no activity for more that year and all PRs are ignored), and the one in @openresty fork has no Lua5.2/5.3 compatibilty too (and also has no PRs for fixing another bugs).
So, how do you think about migrating to another json library?
The text was updated successfully, but these errors were encountered: