Method ToJsonResult
- Namespace
- Docfx.ResultSnippets
- Assembly
- Docfx.ResultSnippets.dll
ToJsonResult<T>(T, JsonSerializerOptions?)
Converts the value to a fenced block of JSON
public static string ToJsonResult<T>(this T value, JsonSerializerOptions? options = null)
Parameters
value
Tvalue to write out as JSON
options
JsonSerializerOptionsoptional json serializer options
Returns
- string
fenced block of JSON
Type Parameters
T
some T