@hackage hslua-aeson2.3.2
Allow aeson data types to be used with Lua.
Installation
Dependencies (7)
- aeson >=2.0.3 && <2.3
- base >=4.11 && <5
- bytestring >=0.10.2 && <0.13
- hslua-core >=2.0 && <2.4
- hslua-marshalling >=2.1 && <2.4
- scientific >=0.3 && <0.4 Show all…
Dependents (4)
@hackage/acme-everything, @hackage/hslua, @hackage/pandoc, @hackage/pandoc-lua-engine
hslua-aeson
Pushes and retrieves aeson Values to and from the Lua stack.
-
Nullvalues are encoded as light userdata containing the @NULL@ pointer. -
Objects are converted to string-indexed tables.
-
Arrays are converted to sequence tables and are given a metatable. This makes it possible to distinguish between empty arrays and empty objects. The metatable is stored in the registry under key
HsLua JSON array. -
JSON numbers are converted to Lua numbers, i.e.,
Lua.Number; the exact C type may vary, depending on compile-time Lua configuration.
License
This project is licensed under the MIT license, the same license under which hslua and lua itself are published. See the LICENSE file for details.