mpx / lua-cjson

Lua CJSON is a fast JSON encoding/parsing module for Lua

Home Page:https://kyne.au/~mark/software/lua-cjson.php

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

decode null to cjson.null

xxy7800 opened this issue · comments

Hello, I have a question. When I use decode to handle a string like "expirePay":{"key":"","value":null,"descr":""}, the value is converted to cjson.null instead of Lua's nil. cjson.null is treated as userdata in my Lua script and I can't process it. How should I handle this? Thank you.