随笔 - 730  文章 - 40 评论 - 17 阅读 - 67万

RESTDebugger

用这个调用,Copy Components,生成控件,

然后粘贴到工程里。

  RESTRequest1.Execute;  // send request to endpoint
 
  var JSONValue: TJSONValue;
  var JSONArray: TJSONArray;
  var ArrayElement: TJSONValue;
 
  // after using object we just free them within the Lists
  RctList := TList<TRectangle>.Create;
  ImgList := TList<TImage>.Create;
  LblTitleList := TList<TLabel>.Create;
  LblDescpList := TList<TLabel>.Create;
 
  try
    JSONValue := TJSONObject.ParseJSONValue(RESTResponse1.Content);
    JSONArray := JSONValue.GetValue<TJSONArray>('data');  // articles are stored in the data array in the JSON response
 
https://blogs.embarcadero.com/how-to-create-a-cross-platform-news-app-with-delphi/
 
posted on   lypzxy  阅读(195)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 10年+ .NET Coder 心语 ── 封装的思维:从隐藏、稳定开始理解其本质意义
· 地球OL攻略 —— 某应届生求职总结
· 提示词工程——AI应用必不可少的技术
· Open-Sora 2.0 重磅开源!
· 字符编码:从基础到乱码解决
历史上的今天:
2017-02-05 delphi 控制音量 静音的类
2015-02-05 C++Builder 也有StringBuilder
2015-02-05 Date 当前程序日期格式 参数设置 DecimalSeparator
2015-02-05 OleVariant Variant
点击右上角即可分享
微信分享提示