遍历TJsonObject
遍历TJsonObject
uses fpjson, jsonparser, core.json;
procedure TForm1.Button1Click(Sender: TObject); var jo: tjsono; i:integer; begin jo := so('{"goodsid":"666"}'); for i:=0 to jo.Count -1 do begin memo1.Lines.add(jo.Names[i]); if jo.Items[i].JSONType = jtString then memo1.lines.Add('string'); memo1.lines.add(jo.Items[i].Value); end; end;
本文来自博客园,作者:{咏南中间件},转载请注明原文链接:https://www.cnblogs.com/hnxxcxg/p/18890967

浙公网安备 33010602011771号