C# 如果响应包含字段System.AreaPath(它包含点),如何反序列化JSON响应
如果响应包含字段System.AreaPath,则如何反序列化JSON响应。因为,我无法在.NET中创建成员为System.AreaPath的类C# 如果响应包含字段System.AreaPath(它包含点),如何反序列化JSON响应,c#,asp.net,json,rest,json.net,C#,Asp.net,Json,Rest,Json.net,如果响应包含字段System.AreaPath,则如何反序列化JSON响应。因为,我无法在.NET中创建成员为System.AreaPath的类 { "count": 1, "value": [ { "id": 297, "rev": 1, "fields": { "System.AreaPath": "Fabrikam-Fiber-Git", "System.TeamProject": "Fabrikam-Fi
{
"count": 1,
"value": [
{
"id": 297,
"rev": 1,
"fields": {
"System.AreaPath": "Fabrikam-Fiber-Git",
"System.TeamProject": "Fabrikam-Fiber-Git",
"System.IterationPath": "Fabrikam-Fiber-Git",
"System.WorkItemType": "Product Backlog Item",
"System.State": "New",
"System.Reason": "New backlog item",
"System.CreatedDate": "2014-12-29T20:49:20.77Z",
"System.CreatedBy": "Jamal Hartnett ",
"System.ChangedDate": "2014-12-29T20:49:20.77Z",
"System.ChangedBy": "Jamal Hartnett ",
"System.Title": "Customer can sign in using their Microsoft Account",
"Microsoft.VSTS.Scheduling.Effort": 8,
"WEF_6CB513B6E70E43499D9FC94E5BBFB784_Kanban.Column": "New",
"System.Description": "Our authorization logic needs to allow for users with Microsoft accounts (formerly Live Ids) - http://msdn.microsoft.com/en-us/library/live/hh826547.aspx"
},
"url": "https://fabrikam.visualstudio.com/_apis/wit/workItems/297"
}
]
}
用[JsonPropertySystem.AreaPath]标记属性谢谢您的回复。我找到了解决方法,如果我们用字符串AreaPath替换子字符串system.AreaPath,那么我们可以轻松地反序列化AreaPath。