[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: [ANN] LuaJSON
- From: David Heiko Kolf <kolf@...>
- Date: Fri, 06 Apr 2012 15:49:16 +0200
Miles Bader wrote:
> Hmm, you should add it to http://lua-users.org/wiki/JsonModules
> Deciding on which json module to use for lua is kinda confusing!
My (biased) decision is to use my own module when a pure Lua module is
required (usually in client applications) and CJSON
<http://www.kyne.com.au/~mark/software/lua-cjson.php> when a fast
server-side module would be required (which I didn't need so far).
I started writing my own module when I did tests with MUD-clients. At a
first glance I found only "JSON4Lua" <http://json.luaforge.net/> which
didn't satisfy me (it parsed the strings as Lua strings instead of
<http://luaforge.net/projects/luajson/> which required LPEG and was
divided into many files (which relied too much on the Lua 5.1 module
system for my taste -- some applications use their own module system
So I took it as a challenge to write my own module. After I finished
that, I discovered that there were quite a lot of other JSON modules
hidden across the web and I started the comparison on the Wiki.
Maybe I should have contributed to a previously existing module instead
of starting an own creation, but...reinventing the wheel was fun at the