DeserializeAsync

DicomJsonSerializer.DeserializeAsync method

Asynchronously reads the UTF-8 encoded text representing a single JSON value into a Dataset.

public static ValueTask<Dataset?> DeserializeAsync(Stream utf8Json, 
    DicomJsonSerializerOptions? dicomJsonOptions = null, bool writeIndented = false)
ParameterTypeDescription
utf8JsonStreamJSON data to parse.
dicomJsonOptionsDicomJsonSerializerOptionsOptions that controls serialization/deserialization process of DICOM objects.
writeIndentedBooleanSpecifies whether JSON should use pretty printing. By default, JSON is serialized without any extra white space.

Return Value

The Dataset or null.

See Also