Delphi7通过superobject解析JSON

1、通过delphi程序访问PHP事先写好的webservice(查询功能),webservice返回json格式数据。

2、通过superobject读取json数据

 

 得到效果如下:

//深层级的访问

jo:=SO('{"datalist":{"username":"admin","name":"管理","sex":"男"}}');

if   jo['datalist.sex']<> nil  then showmessage(jo['datalist.sex'].AsString );    //

https://blog.csdn.net/mpqz1065ok/article/details/80767305

 

posted @ 2019-01-19 12:25  覆雨翻云  阅读(1044)  评论(1编辑  收藏  举报