lua-users home
lua-l archive

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


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,"}]