lua-users home
lua-l archive

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

On Tue, Feb 9, 2010 at 4:17 PM, Thomas Harning Jr. <> wrote:
My LuaJSON projects uses LPeg for parsing and the strict mode passes
all tests provided by the JSON validator project from  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