Rss & SiteMap

Foxtable(狐表) http://www.foxtable.com

新一代数据库软件,完美融合Access、Foxpro、Excel、vb.net之优势,人人都能掌握的快速软件开发工具!
共2 条记录, 每页显示 10 条, 页签: [1]
[浏览完整版]

标题:判断json是空对象

1楼
chenjiu6202 发表于:2023/9/11 17:21:00
判断json是空对象,怎么写啊
2楼
有点蓝 发表于:2023/9/11 17:31:00
Dim json As String = "{'name':'李云龙','age':'36'}"
Dim
 jo As JObject = JObject.Parse(json)
if jo("name") isnot nothing then
Output
.Show(jo("name"))
end if
if jo("name2") isnot nothing then
Output
.Show(jo("name2"))
end if
共2 条记录, 每页显示 10 条, 页签: [1]

Copyright © 2000 - 2018 foxtable.com Tel: 4000-810-820 粤ICP备11091905号

Powered By Dvbbs Version 8.3.0
Processed in .03125 s, 2 queries.