DicomJsonSerializer

DicomJsonSerializer class

Provides functionality to serialize DICOM objects to JSON and to deserialize JSON into DICOM objects.

public static class DicomJsonSerializer

Methods

NameDescription
static Deserialize(ReadOnlySpan<char>, DicomJsonSerializerOptions, bool)Parses the text representing a single JSON value into an instance of the Dataset.
static Deserialize(Stream, DicomJsonSerializerOptions, bool)Reads the UTF-8 encoded text representing a single JSON value into a Dataset.
static DeserializeAsync(Stream, DicomJsonSerializerOptions?, bool)Asynchronously reads the UTF-8 encoded text representing a single JSON value into a Dataset.
static DeserializeFile(ReadOnlySpan<char>, DicomJsonSerializerOptions, bool)Parses the text representing a single JSON value into an instance of the DicomFile.
static DeserializeFile(Stream, DicomJsonSerializerOptions, bool)Reads the UTF-8 encoded text representing a single JSON value into a DicomFile.
static DeserializeFileAsync(Stream, DicomJsonSerializerOptions?, bool)Asynchronously reads the UTF-8 encoded text representing a single JSON value into a DicomFile.
static DeserializeList(ReadOnlySpan<char>, DicomJsonSerializerOptions?, bool)Parses the text representing a single JSON value into a collection of the Dataset.
static DeserializeList(Stream, DicomJsonSerializerOptions?, bool)Reads the UTF-8 encoded text representing a JSON value into a collection of the Dataset.
static DeserializeListAsync(Stream, DicomJsonSerializerOptions?, bool)Asynchronously reads the UTF-8 encoded text representing a JSON value into a collection of the Dataset.
static Serialize(Dataset, DicomJsonSerializerOptions?, bool)Converts a Dataset to JSON.
static Serialize(Dataset[], DicomJsonSerializerOptions?, bool)Converts a collection of the Dataset to JSON.
static Serialize(DicomFile, DicomJsonSerializerOptions?, bool)Converts a DicomFile to JSON.
static Serialize(Stream, Dataset, DicomJsonSerializerOptions?, bool)Converts a Dataset to JSON.
static Serialize(Stream, Dataset[], DicomJsonSerializerOptions?, bool)Converts a collection of the Dataset to UTF-8 JSON.
static Serialize(Stream, DicomFile, DicomJsonSerializerOptions?, bool)Converts a DicomFile to JSON.
static SerializeAsync(Stream, Dataset, DicomJsonSerializerOptions?, bool)Asynchronously converts a Dataset to JSON.
static SerializeAsync(Stream, Dataset[], DicomJsonSerializerOptions?, bool)Asynchronously converts a collection of the Dataset to UTF-8 JSON.
static SerializeAsync(Stream, DicomFile, DicomJsonSerializerOptions?, bool)Asynchronously converts a DicomFile to JSON.

See Also