[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: luajson vs. null
- From: Alexander Gladysh <agladysh@...>
- Date: Sun, 12 Sep 2010 02:07:45 +0400
On Sun, Sep 12, 2010 at 01:23, Thomas Harning Jr. <harningt@gmail.com> wrote:>
> On 9/11/10, Alexander Gladysh <agladysh@gmail.com> wrote:
>> While we're on it: I have a special case (not for default json2lua
>> mode) where I need luajson to convert JSON string keys that are
>> numbers (like "1" or "123.456", but not "123a") to numbers in Lua.
>> Example:
>> { "key": "value", "1": "one", "20": "twenty" }
>> Becomes:
>> { ["key"] = "value", [1] = "one", [20] = "twenty" }
>> Is this possible?
> It is possible, it may take a tweak in the handling code to add the capability
Um, thanks. Where should I start digging?
Alexander.