Fabio Mascarenhas | 9 Feb 19:34
Picon
Favicon
Gravatar

Re: Lua and JSON

On Tue, Feb 9, 2010 at 4:17 PM, Thomas Harning Jr. <harningt <at> gmail.com> wrote:
My LuaJSON projects uses LPeg for parsing and the strict mode passes
all tests provided by the JSON validator project from JSON.org  The
non-strict mode permits some more loose handling of constructs.


+1 for Thomas' module, it works great. Thomas, have you thought about having json.encode honor a "__tojson" metamethod (along with a rawencode function), so it is easier to extend the encoder to understand app-specific data types?

--
Fabio Mascarenhas


Gmane