HORIZON HASKELLDocslts/ghc-10.0.x8fef28d2026-11-02Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8fef28d · 2026-11-02

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