Skip to content

Latest commit

 

History

History
21 lines (10 loc) · 1.42 KB

JsonDicomConverters.md

File metadata and controls

21 lines (10 loc) · 1.42 KB

JsonDicomConverters

Documentation for classes which convert between DICOM and JSON. Each is an implementation of the Newtonsoft.Json.JsonConverter class.

Default fo-dicom converter

The default converter as found in fo-dicom, at the current version as specified in the project packages. Aims to follow the DICOM JSON model.

It is recommended to use this converter if you wish to read JSON data which has been created to follow the DICOM JSON model.

SmiJsonDicomConverter

The default converter used by this library, unless otherwise specified. Aims to allow greater coverage when dealing with "real world" DICOM data. In particular, it does not attempt to force the DICOM numeric string types into their respective C# types before converting to JSON.

Additionally, some value representations (OW, OB, and UN) have their tags serialized but their data are omitted. This can be configured with the DicomTypeTranslater.SerializeBinaryData option. The VRs which are treated like this are set by the DicomTypeTranslater.DicomBsonVrBlacklist.

This converter does not follow the DICOM JSON model, and will not support reading JSON data which was not created with this library.