Skip to content
This repository has been archived by the owner on Dec 29, 2021. It is now read-only.

Latest commit

 

History

History
26 lines (17 loc) · 781 Bytes

README.md

File metadata and controls

26 lines (17 loc) · 781 Bytes

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.