HttpResponseJsonExtensions Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides extension methods for writing a JSON serialized value to the HTTP response.
public ref class HttpResponseJsonExtensions abstract sealed
public static class HttpResponseJsonExtensions
type HttpResponseJsonExtensions = class
Public Module HttpResponseJsonExtensions
- Inheritance
-
HttpResponseJsonExtensions
Methods
WriteAsJsonAsync(HttpResponse, Object, JsonTypeInfo, String, CancellationToken) |
Write the specified value as JSON to the response body. The response content-type will be set to the specified content-type. |
WriteAsJsonAsync(HttpResponse, Object, Type, CancellationToken) |
Write the specified value as JSON to the response body. The response content-type will be set to
|
WriteAsJsonAsync(HttpResponse, Object, Type, JsonSerializerContext, String, CancellationToken) |
Write the specified value as JSON to the response body. The response content-type will be set to the specified content-type. |
WriteAsJsonAsync(HttpResponse, Object, Type, JsonSerializerOptions, CancellationToken) |
Write the specified value as JSON to the response body. The response content-type will be set to
|
WriteAsJsonAsync(HttpResponse, Object, Type, JsonSerializerOptions, String, CancellationToken) |
Write the specified value as JSON to the response body. The response content-type will be set to the specified content-type. |
WriteAsJsonAsync<TValue>(HttpResponse, TValue, CancellationToken) |
Write the specified value as JSON to the response body. The response content-type will be set to
|
WriteAsJsonAsync<TValue>(HttpResponse, TValue, JsonSerializerOptions, CancellationToken) |
Write the specified value as JSON to the response body. The response content-type will be set to
|
WriteAsJsonAsync<TValue>(HttpResponse, TValue, JsonSerializerOptions, String, CancellationToken) |
Write the specified value as JSON to the response body. The response content-type will be set to the specified content-type. |
WriteAsJsonAsync<TValue>(HttpResponse, TValue, JsonTypeInfo<TValue>, String, CancellationToken) |
Write the specified value as JSON to the response body. The response content-type will be set to the specified content-type. |
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for