[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: luajson vs. null
- From: "Thomas Harning Jr." <harningt@...>
- Date: Sat, 11 Sep 2010 13:41:59 -0400
Will put it on my ToDo list for the project to enhance documentation
to include such basics.
On 9/11/10, Alexander Gladysh <firstname.lastname@example.org> wrote:
> On Sat, Sep 11, 2010 at 18:19, Thomas Harning Jr. <email@example.com>
>> On 9/11/10, Alexander Gladysh <firstname.lastname@example.org> wrote:
>>> However, there is a problem with nulls inside JSON data. The
>>> json.decode() inserts json.util.null() there, but, to get serializable
>>> output, I need Lua nils.
>> If you pass in the json.decode.simple config table to decode, you will
>> get actual nils for null and undefined.
>> json.decode("null", json.decode.simple)
> Thanks! This does work!
> Any reason why it is not documented?
Thomas Harning Jr.