[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Smallest Lua-only single-file JSON parser
- From: Alexander Gladysh <agladysh@...>
- Date: Thu, 27 Oct 2011 13:50:20 +0400
On Thu, Oct 27, 2011 at 01:45, Matthew Wild <mwild1@gmail.com> wrote:
> On 26 October 2011 15:22, Alexander Gladysh <agladysh@gmail.com> wrote:
>> I need to parse JSON in Lua-only environment.
>>
>> Is there some primitive single-file JSON parser that I can paste
>> directly into my script? (Doh, no multi-file support as well...)
> I thought you'd never ask.
>
> MIT-licensed (see project root directory, though I can add a copyright
> header if you require that):
> http://hg.prosody.im/trunk/file/tip/util/json.lua
> The decoder starts after line 132.
Thank you! I'll give it a try as well!
Alexander.