Delphi13下JSON学习2REST.Json.TJson.JsonToObject<TAaa>
摘要:type TAddress = class public city: string; end; TPerson = class public name: string; age: Integer; address: TAddress; end; // uses REST.Json; // 转换代码
阅读全文
Delphi10.3下JSON学习1TJSONObject.ParseJSONValue
摘要:JSON基础知识 {"name":"张三", "other":["中国","程序员"]} 以一对花挎号{},{} 之间是一个对象, 对象可以层层嵌套 元素与值用冒号 ":" 隔开元素与元素用逗号 "," 隔开 要根据JSON文本结构,才来Delphi操作JSON三步曲: //1引用单元 uses S
阅读全文