我为测验开发了一项网络服务,移动应用正在使用此网络服务
{"UserCode":"a1123","ExamCode":"597","Answer":[{"Answer":"Answer 1","QuestionID":"8075"},{"Answer":"Nil moratorium","QuestionID":"8076"}]}
这是移动应用程序以应用程序/ json格式和post方法返回的JSON
public string QuestionOption_Upsert(string UserCode, string ExamCode, String Answer)
上面的函数正在获取Web服务返回的数据
使用C#完成此操作 任何帮助,将不胜感激 提前谢谢
答案 0 :(得分:0)
[DataContract]
public class QuesAnswer
{
[DataMember (Name="Answer")]
public int Answer { get; set; }
[DataMember(Name = "QuestionID")]
public int QuestionID { get; set; }
}
班级QuesAnswer:
\<%(\s+)((.+?)(\n)*(\s+))*%>