lua-users home
lua-l archive

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


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.