[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: JSON to Lua syntax converter?
- From: "Eric Tetz" <erictetz@...>
- Date: Fri, 1 Feb 2008 11:55:12 -0800
On Feb 1, 2008 8:45 AM, Petite Abeille <petite.abeille@gmail.com> wrote:
> E.g. wrap the keys with [], change the ':' to '=', the list
> delimitator to {}, null to nil and that should be pretty much it.
The first three are easy enough, but stuff like 'replace null with nil
only when it's not inside a string' is not doable with regular
expressions. For instance:
{"items": [ {",null": "null,"}, null, {",null": "null,"}]