5 instantiations of JsonHttpResult
Microsoft.AspNetCore.Http.Results (5)
Results.cs (2)
204
return new
JsonHttpResult
<object>(data, statusCode, contentType) { JsonTypeInfo = jsonTypeInfo };
223
return new
JsonHttpResult
<object>(data, statusCode, contentType)
TypedResults.cs (3)
201
=>
new
(data, options, statusCode, contentType);
218
return
new
(data, statusCode, contentType) { JsonTypeInfo = jsonTypeInfo };
236
return
new
(data, statusCode, contentType)
15 references to JsonHttpResult
Microsoft.AspNetCore.Http.Results (15)
Results.cs (6)
180
/// <returns>The created <see cref="
JsonHttpResult
{TValue}"/> that serializes the specified <paramref name="data"/>
196
/// <returns>The created <see cref="
JsonHttpResult
{TValue}"/> that serializes the specified <paramref name="data"/>
215
/// <returns>The created <see cref="
JsonHttpResult
{TValue}"/> that serializes the specified <paramref name="data"/>
236
/// <returns>The created <see cref="
JsonHttpResult
{TValue}"/> that serializes the specified <paramref name="data"/>
253
/// <returns>The created <see cref="
JsonHttpResult
{TValue}"/> that serializes the specified <paramref name="data"/>
269
/// <returns>The created <see cref="
JsonHttpResult
{TValue}"/> that serializes the specified <paramref name="data"/>
TypedResults.cs (9)
187
/// Creates a <see cref="
JsonHttpResult
{TValue}"/> that serializes the specified <paramref name="data"/> object to JSON.
196
/// <returns>The created <see cref="
JsonHttpResult
{TValue}"/> that serializes the specified <paramref name="data"/>
200
public static
JsonHttpResult
<TValue> Json<TValue>(TValue? data, JsonSerializerOptions? options = null, string? contentType = null, int? statusCode = null)
204
/// Creates a <see cref="
JsonHttpResult
{TValue}"/> that serializes the specified <paramref name="data"/> object to JSON.
211
/// <returns>The created <see cref="
JsonHttpResult
{TValue}"/> that serializes the specified <paramref name="data"/>
214
public static
JsonHttpResult
<TValue> Json<TValue>(TValue? data, JsonTypeInfo<TValue> jsonTypeInfo, string? contentType = null, int? statusCode = null)
222
/// Creates a <see cref="
JsonHttpResult
{TValue}"/> that serializes the specified <paramref name="data"/> object to JSON.
229
/// <returns>The created <see cref="
JsonHttpResult
{TValue}"/> that serializes the specified <paramref name="data"/>
232
public static
JsonHttpResult
<TValue> Json<TValue>(TValue? data, JsonSerializerContext context, string? contentType = null, int? statusCode = null)