Skip to main content
.NET API Catalog
  • Browse
  • Search
  • Diff
  • Others
    Feature Usage Stats
    Version Source
  • .NET Upgrade Planner
  1. Catalog
  2. Microsoft.AspNetCore.Http
  3. HttpResponseJsonExtensions
  • HttpResponseJsonExtensions
    • WriteAsJsonAsync(HttpResponse, Object, Type, CancellationToken)
    • WriteAsJsonAsync(HttpResponse, Object, JsonTypeInfo, String, CancellationToken)
    • WriteAsJsonAsync(HttpResponse, Object, Type, JsonSerializerOptions, CancellationToken)
    • WriteAsJsonAsync(HttpResponse, Object, Type, JsonSerializerContext, String, CancellationToken)
    • WriteAsJsonAsync(HttpResponse, Object, Type, JsonSerializerOptions, String, CancellationToken)
    • WriteAsJsonAsync<TValue>(HttpResponse, TValue, CancellationToken)
    • WriteAsJsonAsync<TValue>(HttpResponse, TValue, JsonSerializerOptions, CancellationToken)
    • WriteAsJsonAsync<TValue>(HttpResponse, TValue, JsonSerializerOptions, String, CancellationToken)
    • WriteAsJsonAsync<TValue>(HttpResponse, TValue, JsonTypeInfo<TValue>, String, CancellationToken)
net9.0
namespace Microsoft.AspNetCore.Http
{
    public static class HttpResponseJsonExtensions
}
.NET
5.06.07.08.09.0
Information specific to net9.0
Assembly

Microsoft.AspNetCore.Http.Extensions , Version=9.0.0.0, PublicKeyToken=adb9793829ddae60

Referencing

Requires any:

  • Your project needs to use SDK Microsoft.NET.Sdk.Web.

  • Your project needs a framework reference to Microsoft.AspNetCore.App.

Platform Restrictions

This API is supported on all platforms.

  • Built-in API
  • Package-provided API
Search

10/25/2026
This site is managed by Microsoft | © 2026 Microsoft. All rights reserved.
  • Privacy Statement
  • Consumer Health Privacy
  • Terms of Use
  • Contact Us
  • Hosted on Microsoft Azure
  • Manage cookies
  • Your Privacy Choices
Oops, we couldn't process your request. Reload 🗙