Ja, nee, so nicht ...
Aber die Konvertierung ist relativ simpel:
Delphi-Quellcode:
uses
System.Generics.Collections,
System.JSON;
function DictionaryToJsonObject(const ADict: TDictionary<string, string>): TJSONObject;
var
lPair: TPair<string, string>;
begin
Result := TJSONObject.Create();
for lPair in ADict do
begin
Result.AddPair(lPair.Key, lPair.Value);
end;
end;
function JsonToDictionary(const AJson:TJsonObject) : TDictionary<string,string>;
var
lPair: TJSONPair;
begin
Result := TDictionary<string,string>.Create();
for lPair in AJson do
begin
Result.Add(lPair.JsonString.Value,lPair.JsonValue.Value);
end;
end;