0
からJSONをデシリアライズすることができます私は、次のJSONは、私が見つけることを試みている何のDocumentumはどのように私はDocumentumのRESTサービス
{
"resources" : {
"http://identifiers.emc.com/linkrel/repositories" : {
"href" : "http://stg1docapp10:7000/dctm-rest/repositories.json",
"hints" : {
"allow" : ["GET"],
"representations" : ["application/xml", "application/json", "application/atom+xml", "application/vnd.emc.documentum+json"]
}
},
"about" : {
"href" : "http://stg1docapp10:7000/dctm-rest/product-info.json",
"hints" : {
"allow" : ["GET"],
"representations" : ["application/xml", "application/json", "application/vnd.emc.documentum+xml", "application/vnd.emc.documentum+json"]
}
}
}
}
から返されていたクラスにこれを変換する方法です。
私は
Dictionary<String,String> ds = JsonConvert.DeserializeObject<Dictionary<String, String>>(result);
を試してみました、私は次のクラスを定義し、その中にそれをデシリアライズしようとしています。
public class DocumentumServices
: IDisposable
{
public String href { get; set; }
public IList<String> hints { get; set; }
public void Dispose()
{
}
}
http://json2csharp.comのようなオンラインPOCO発電機を試してみませんか? – Miki