protected void BtnAddMessage_Click(object sender, EventArgs e) { //"OMSG对象Json + MSG1对象Json"; AddMessageModel msgObj = new AddMessageModel { Omsg1Model = ModelHelper.GetMSG1Model(), OmsgModel = ModelHelper.GetOmsgModel(), }; string result = InterfaceController.AddMessage(msgObj); APIReturnModel model = null; try { JavaScriptSerializer js = new JavaScriptSerializer(); if (!string.IsNullOrEmpty(result)) { model = js.Deserialize <APIReturnModel>(result); } } catch (Exception ex) { Console.WriteLine(ex); } Response.Write(JsonHelper.DataContractJsonSerialize <APIReturnModel>(model)); }