| Copyright | © 2017–2021 Albert Krewinkel |
|---|---|
| License | MIT |
| Maintainer | Albert Krewinkel <tarleb@zeitkraut.de> |
| Safe Haskell | None |
| Language | Haskell2010 |
HsLua.Aeson
Description
Pushes and retrieves aeson Values to and from the Lua stack.
- JSON
nullvalues are encoded as light userdata containing theNULLpointer. - 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'' (see alsojsonarray). - JSON numbers are converted to Lua numbers, i.e.,
Number; the exact C type may vary, depending on compile-time Lua configuration.