lua-users home
lua-l archive

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



On Feb 1, 2008, at 9:44 PM, Eric Tetz wrote:

You need to tokenize the input so you can determine what's in a string
and what's not. For instance, there's nothing that says a key or value
couldn't be the string "{\"items": [ {\"[{,null\": \"null},\\,\"},
null, {\",null\": \",{ = null,\"}]".

Perhaps one could encode the sequence '\"' first [1]. That way there is no confusion about where a string starts and where it ends.

[1] http://www.lua.org/pil/20.4.html