lua-users home
lua-l archive

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


Is the Lua representation of JSON reasonably standard across decoders
by now? The one I use [1] translates integers to integers; floats to floats;
strings to strings; arrays and objects to tables, distinguished by
their metatables. There is one metatable for all JSON objects and
another for all JSON arrays. Those metatables are not functional,
they merely contain fields that identify to which JSON type the table
corresponds.

Do other JSON decoders do this differently?

[1] rapidjson