【文件属性】:
文件名称:json4delphi:JSON for Delphi,支持较早版本的Delphi(6或更高版本)
文件大小:13KB
文件格式:ZIP
更新时间:2021-05-11 00:01:06
Pascal
json4delphi
JSON for Delphi,支持较早版本的Delphi(6或更高版本)
对象-pascal本机代码,仅使用TList,TStrings和TStringList类
例子:
var
Json: TJson;
Str: String
begin
Json := TJson.Create();
// put
Json.Put( ' field1 ' , null);
Json.Put( ' field2 ' , True);
Json.Put( ' field3 ' , 3.14 );
Json.Put( ' field4 ' , ' hello world ' );
// another way
Json[ ' field5 ' ].AsBoolean := False;
Json[ ' field6 ' ].AsSt
【文件预览】:
json4delphi-master
----src()
--------Jsons.pas(40KB)
--------JsonsUtilsEx.pas(18KB)
----README.md(882B)
----test()
--------TestJson.dpr(1KB)