lua-users home
lua-l archive

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


Philippe Lhoste wrote:
On 01/02/2008 17:45, Petite Abeille wrote:
E.g. wrap the keys with [], change the ':' to '=', the list delimitator to {}, null to nil and that should be pretty much it.

Using LPeg, perhaps?

I've written a JSON -> Lua parser in LPeg .... wouldn't be too hard to make it spit out the representative Lua code, I'd think...

I thought I'd posted it up... but it appears that its missing. Eventually I'll get the code up @ http://repo.or.cz/w/luajson.git when I find it....

You can watch http://www.eharning.us/wiki/projects and http://www.eharning.us/wiki/luajson/ for info