lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> On Sat, Apr 11, 2015 at 12:58 PM, Nagaev Boris <bnagaev@gmail.com> wrote:
>> I found 12 JSON bindings.
>> http://rocks.moonscript.org/search?q=json
>
> They seem to have a great fascination for developers.  Perhaps because
> it's an interesting problem, not too hard, and because people have
> different needs.
>
> It does make it harder for someone to just pick a library that works
> with JSON....

For those who weren't there, I think this was a reference to my talk
at Workshop 2013 where I contrasted the low number of packages in
LuaRocks to this page: http://lua-users.org/wiki/JsonModules

However, at the time there were only 330 packages in LuaRocks.
Now that this number has more than doubled, the ratio of JSON
modules has probably gone down :)

As for why there are so many JSON modules, you are probably right.
Also most of them are bindings to different C libraries.

Lua Toolbox shows that we do use at least some of the different
modules (https://lua-toolbox.com/label/7), with the top three
being dkjson, lua-cjson and luajson. I actually use two
(luajson lua-cjson) myself, because they are mostly drop-in
replacements for one another, but one is pure Lua and the other
is faster but written in C.

-- 
Pierre Chapuis