lua-cjson icon indicating copy to clipboard operation
lua-cjson copied to clipboard

decode null to cjson.null

Open xxy7800 opened this issue 2 years ago • 0 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.

xxy7800 avatar Jun 13 '24 02:06 xxy7800