lua-cjson项目decode null值会返回userdata #1488
Unanswered
ffbh123456
asked this question in
Q&A
Replies: 2 comments 2 replies
-
cjson的问题,建议去对应项目下提issue
发自我的iPhone
在 2021年10月14日,下午10:18,JiaZhi Zhou ***@***.***> 写道:
https://github.com/cloudwu/lua-cjson
local cjson = require("cjson")
local str = '{"a": null}'
local tbl = cjson.decode(str)
local a = tbl['a']
print(type(a)) -- 会输出userdata
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub<#1488>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ADDQZK4GKCP3I5QUXNWF4C3UG3RBTANCNFSM5F7Y3XJA>.
|
Beta Was this translation helpful? Give feedback.
1 reply
-
那是它用来表达json null的,lua没有对应的设施
发自我的iPhone
在 2021年10月14日,下午10:26,JiaZhi Zhou ***@***.***> 写道:
lua-cjson项目已经关闭issue功能了,所以才提到这里的
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<#1488 (reply in thread)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ADDQZK3ZXYTLFOWPGFVFHKLUG3R73ANCNFSM5F7Y3XJA>.
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
https://github.com/cloudwu/lua-cjson
Beta Was this translation helpful? Give feedback.
All reactions