mpx / lua-cjson

Lua CJSON is a fast JSON encoding/parsing module for Lua
https://kyne.au/~mark/software/lua-cjson.php
MIT License
933 stars 478 forks source link

invoke getmetatable(val).__tojson() if present #14

Open dustyleary opened 11 years ago

dustyleary commented 11 years ago

This allows you to provide custom serialization. It mimics the same feature in dkjson.