diff options
Diffstat (limited to 'server/resty/session/serializers/json.lua')
-rw-r--r-- | server/resty/session/serializers/json.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/server/resty/session/serializers/json.lua b/server/resty/session/serializers/json.lua new file mode 100644 index 0000000..960c4d8 --- /dev/null +++ b/server/resty/session/serializers/json.lua @@ -0,0 +1,6 @@ +local json = require "cjson.safe" + +return { + serialize = json.encode, + deserialize = json.decode, +} |