Skip to main content

Module json

Module json 

Source
Expand description

DICOM JSON serialization and deserialization (PS3.18 Annex F).

Ports DCMTK’s dcjson.h / dcjsonrd.h. The DICOM JSON model encodes each element as { "GGGGEEEE": { "vr": "XX", "Value": [...] } }.

Enums§

BinaryValueMode
Controls how binary values are represented when serializing DICOM JSON.

Functions§

from_json
Deserialize a DICOM JSON string into a DataSet.
to_json
Serialize a DataSet to a DICOM JSON string (PS3.18 §F.2).
to_json_pretty
Serialize a DataSet to a pretty-printed DICOM JSON string.
to_json_with_binary_mode
Serialize a DataSet to a DICOM JSON string using an explicit binary-value policy.