Skip to content

DurableHttpResponse.ReadFromJson(JsonSerializerOptions?)

ReadFromJson(JsonSerializerOptions?)

View source
public T? ReadFromJson<T>(JsonSerializerOptions? options = null)
Deserializes the content as JSON, or returns default for empty content.

Parameters

optionsJsonSerializerOptions?
The serializer options, or null for the System.Text.Json.JsonSerializerDefaults.Web defaults.

Returns

The deserialized value.