Deserialize

Deserialize(ReadOnlySpan<char>, DicomJsonSerializerOptions, bool)

Parses the text representing a single JSON value into an instance of the Dataset.

public static Dataset? Deserialize(ReadOnlySpan<char> json, 
    DicomJsonSerializerOptions? dicomJsonOptions = null, bool writeIndented = false)
ParameterTypeDescription
jsonReadOnlySpan`1The JSON text 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


Deserialize(Stream, DicomJsonSerializerOptions, bool)

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

public static Dataset? Deserialize(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