[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Standards for JSON decoders
- From: Sean Conner <sean@...>
- Date: Thu, 15 Jun 2017 11:42:02 -0400
It was thus said that the Great Dirk Laurie once stated:
> Is the Lua representation of JSON reasonably standard across decoders
> by now? The one I use  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
> Do other JSON decoders do this differently?
For Lua 5.3, my own JSON decoder  returns integers as integers, floats
as floats and arrays and objects as tables sans a metatable.
>  rapidjson