HORIZON HASKELLDocslts/ghc-9.14.x7a6c33e2026-10-12Search packagesCtrl K
Theme: |

GHC 9.14.1 · lts/ghc-9.14.x · 7a6c33e · 2026-10-12

Modulehslua-aeson-2.3.2Haskell2010

HsLua.Aeson

Pushes and retrieves aeson Values to and from the Lua stack.

  • JSON null values 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'' (see also jsonarray).

  • JSON numbers are converted to Lua numbers, i.e., Number; the exact C type may vary, depending on compile-time Lua configuration.

Contents
  1. Encoding arbitrary objects
Synopsis
valuejsonarray :: Name

Name of the registry slot holding the metatable given to array tables. The registry entry can be replaced with a different table if needed.

Encoding arbitrary objects