/hslua-aeson

Instances to push and receive Aeson's Value type to and from the Lua stack. Code moved to folder hslua-aeson in repo https://github.com/hslua/hslua.

Primary LanguageHaskellMIT LicenseMIT

hslua-aeson

MIT License

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

  • Null values are encoded as a special value (stored in the registry field HSLUA_AESON_NULL).

  • Objects are converted to string-indexed tables.

  • Arrays are converted to sequence tables. Array-length is included as the value at index 0. This makes it possible to distinguish between empty arrays and empty objects.

  • JSON numbers are converted to Lua numbers (usually doubles).

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.