/// <summary> /// Write the <paramref name="value"/> as JSON /// </summary> /// <param name="me"></param> /// <param name="value"></param> /// <param name="contentType"></param> /// <returns></returns> public static Task WriteAsJsonAsync(this IHttpResponse me, object value, string contentType = "application/json") { var json = JsonUtil.Serialize(value); return(me.WriteAsTextAsync(json, contentType)); }