lua-users home
lua-l archive

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

2017-04-17 16:08 GMT+02:00 Matthew Wild <>:
> On 17 April 2017 at 07:47, Dirk Laurie <> wrote:
>> Please show me some sample JSON code that this decoder can't handle
>> properly.
> {" a": 1 }
> I don't see why you use that pattern for keys. Intentional limitation?

The keys are all trimmed, but in a multilingual environment (which is not
uncommon on that website) non-ASCII characters could occur. I'll have
another think about that pattern, but since the ordinary string library is
UTF8-agnostic, there may not be much I can do about it. The locale
concept for %w only works in an 8-bit setting like ISO-8859.