这个格式是 Json 的.网上有 Delphi 的 Json 解析单元。以下是一个解析的例子。program sample;{$APPTYPE CONSOLE}uses SysUtils,Classes,uLkJSON;procedure JsonText(TmpBase:TlkJSONbase;Const sTitle:String='');var i:Integer; TmpStr,sRoot:String;begin case TmpBase.SelfType of jsList: begin for i:=1 to TmpBase.Count do begin sRoot:=ConCat(sTitle,IntToStr(i),'/'); JsonText(TmpBase.Child[i-1],sRoot); end; end; jsBase,jsObject: begin for i:=1 to TmpBase.Count do begin sRoot:=ConCat(sTitle,TlkJsonObject(TmpBase).NameOf[i-1],'/'); JsonText(TlkJsonObject(TmpBase).FieldByIndex[i-1],sRoot); writeln end; end; jsNumber, jsString, jsBoolean, jsNull: begin TmpStr := TlkJSON.GenerateText(TmpBase); writeln(ConCat('Field:',sTitle)); writeln(ConCat('Value:',TmpStr)); end; end;end;function JsonBase(sTitle:String;TmpBase:TlkJSONbase):TlkJSONbase;var i,l:Integer; TmpStr:String; TmpList:TStringList;begin try TmpList:=TStringList.Create; TmpList.Delimiter:='/'; TmpList.DelimitedText:=sTitle; for i:=1 to TmpList.Count do begin TmpStr:=TmpList.Strings[i-1]; l:=StrToIntDef(TmpStr,-1); if Assigned(TmpBase) then begin if (TmpBase.SelfType=jsList)and(l>=0) then TmpBase:=TmpBase.Child[l-1] else TmpBase:=TmpBase.Field[TmpStr]; end else Break; end; Result:=TmpBase; finally freeandnil(TmpList); end;end;var SourceBase, TmpBase:TlkJSONbase;begin try SourceBase := TlkJSON.ParseText('{"cacheControl":{"seed":11,"tool":1,"diy":3},"a":false,"b":1259926521,"c":false,"task":{"taskId":0,"taskFlag":0}}'); JsonText(SourceBase); writeln('---------------Over-----------------'); readln; finally freeandnil(SourceBase); end;end.