使用Newtonsoft.Json.dll组件输出json:

 

var result = new
            {
                ResultCode = allDone == 0 ? -1 : 0,
                QueryUserInfoResp = getUserInfo(),
                WhoAddMeByPageResp = getWhoAddMeCount(),
                ISyncRecentTime = getSyncTime(iContactServiceBLL.FROM_FORUM),
                SyncTime12580 = getSyncTime(iContactServiceBLL.FROM_12580)
            };
            JsonSerializer js = new JsonSerializer();
            js.Serialize(new JsonTextWriter(context.Response.Output), result);

相关文章:

  • 2021-07-29
  • 2021-12-20
  • 2021-06-23
  • 2021-12-11
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-12-05
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案