JSONResult to String
You're looking for the JavaScriptSerializer
class, which is used internally by JsonResult:
string json = new JavaScriptSerializer().Serialize(jsonResult.Data);
json = " { \"success\" : false, \"errors\": { \"text\" : \"绑定登录失败!\" } }"; return new MemoryStream(Encoding.UTF8.GetBytes(json));