aboutsummaryrefslogtreecommitdiff
path: root/pandoc-lua-engine/test/lua/module/pandoc-json.lua
AgeCommit message (Collapse)Author
2024-06-01Lua: Set `pandoc.List` as default metatable for JSON listsAlbert Krewinkel
Lists created by `pandoc.json.decode` now behave like lists generated via `pandoc.List`. This also ensures that `pandoc.List` tables are encoded as JSON arrays when passed to `pandoc.json.encode`. Fixes: #9834
2023-03-20Lua: fix json.encode for nested AST elements.Albert Krewinkel
Ensures that objects with nested AST elements can be encoded as JSON.
2023-02-11Lua: add module `pandoc.json` to handle JSON encodingAlbert Krewinkel
Closes: #8605