方法:

TJSONObject.GetValue<string>('path')

结果:系统04

{
    "errcode":0,
    "errmsg":"ok",
    "result":{
        "has_more":false,
        "list":[
            {
                "name":"系统04",
                "userid":"21440925221347449207"
            }
        ]
    },
    "request_id":"15s84fqhxodpx"
}
Response := HttpPost(Content, 'topapi/user/listsimple');
    try
      if ParseResponse(Response) then
      begin
        JsonString:=Response.GetValue<string>('result.list[0].name');
        Result :=JsonString; 
end;
finally
FreeAndNil(Response);
end;
posted on 2022-04-13 08:23  redhat588  阅读(78)  评论(0)    收藏  举报