uses
.., JSON;
- Null (TJSONNull)var
obj : TJSONObject;
begin
obj := TJSONObject.Create;
try
obj.AddPair('Integer Value', TJSONNumber.Create(1234));
obj.AddPair('String Value', TJSONString.Create('Test'));
finally
obj.Free;
end;
end;
- Boolean(TJSONBool)
- Number (TJSONNumber)
- String (TJSONString)
- Array (TJSONArray)
- Object (TJSONObject)
반응형