json2dcm(1) OFFIS DCMTK json2dcm(1) (NAME) json2dcm - JSON DICOM (SYNOPSIS) json2dcm [options] jsonfile-in dcmfile-out (DESCRIPTION) json2dcm JSON (JavaScript Object Notation) DICOM . JSON << DICOM JSON>> DICOM Part 18 Section F . JSON dcm2json . (PARAMETERS) jsonfile-in JSON ("-" stdin) dcmfile-out DICOM ("-" stdout) (OPTIONS) (general options) -h --help --version --arguments -q --quiet -v --verbose -d --debug -ll --log-level [l]evel: string constant (fatal, error, warn, info, debug, trace) l -lc --log-config [f]ilename: string f (input options) : +f --read-meta-info () -f --ignore-meta-info (processing options) : +Ug --generate-new-uids Study/Series/SOP Instance UID -Uo --dont-overwrite-uids UID () +Uo --overwrite-uids UID Bulkdata URI: +Bu --parse-bulkdata-uri Bulkdata URI () -Bu --ignore-bulkdata-uri Bulkdata URI +Bd --add-bulkdata-dir [d]irectory: string d bulk data : -ar --array-reject () +as --array-select [n]umber: integer n +ar --array-sequence (output options) : +F --write-file () -F --write-dataset +Fu --update-meta-info : +t= --write-xfer-same TS () +te --write-xfer-little TS explicit VR little endian +tb --write-xfer-big TS explicit VR big endian +ti --write-xfer-implicit TS implicit VR little endian +td --write-xfer-deflated TS deflated explicit VR little endian : -E --stop-on-error () +E --ignore-errors (VR) : +u --enable-new-vr VR (UN/UT) () -u --disable-new-vr VR OB : +e --length-explicit () -e --length-undefined : +c --charset-accept JSON () -c --charset-replace JSON UTF-8 deflate ( --write-xfer-deflated): +cl --compression-level [l]evel: integer (default: 6) 0= 1= 9= JSON ( DICOM Part 18 Section F ): { "00080005": { "vr": "CS", "Value": [ "ISO_IR 192" ] }, "00080020": { "vr": "DT", "Value": [ "20130409" ] }, "00080030": { "vr": "TM", "Value": [ "131600.0000" ] }, "00080050": { "vr": "SH", "Value": [ "11235813" ] }, "00080056": { "vr": "CS", "Value": [ "ONLINE" ] }, "00080061": { "vr": "CS", "Value": [ "CT", "PET" ] }, "00080090": { "vr": "PN", "Value": [ { "Alphabetic": "^Bob^^Dr." } ] }, "00081190": { "vr": "UR", "Value": [ "http://wado.nema.org/studies/ 1.2.392.200036.9116.2.2.2.1762893313.1029997326.945873" ] }, "00090010": { "vr": "LO", "Value": [ "Vendor A" ] }, "00091002": { "vr": "UN", "InlineBinary": "z0x9c8v7" }, "00100010": { "vr": "PN", "Value": [ { "Alphabetic": "Wang^XiaoDong" } ] }, "00100020": { "vr": "LO", "Value": [ "12345" ] }, "00100021": { "vr": "LO", "Value": [ "Hospital A" ] }, "00100030": { "vr": "DA", "Value": [ "19670701" ] }, "00100040": { "vr": "CS", "Value": [ "M" ] }, "00101002": { "vr": "SQ", "Value": [ { "00100020": { "vr": "LO", "Value": [ "54321" ] }, "00100021": { "vr": "LO", "Value": [ "Hospital B" ] } }, { "00100020": { "vr": "LO", "Value": [ "24680" ] }, "00100021": { "vr": "LO", "Value": [ "Hospital C" ] } } ] }, "0020000D": { "vr": "UI", "Value": [ "1.2.392.200036.9116.2.2.2.1762893313.1029997326.945873" ] }, "00200010": { "vr": "SH", "Value": [ "11235813" ] }, "00201206": { "vr": "IS", "Value": [ 4 ] }, "00201208": { "vr": "IS", "Value": [ 942 ] } } JSON UTF-8 . DICOM UTF-8 . JSON "ISO_IR 192" . (Binary Data, Bulk Data, and Pixel Data) DICOM JSON "InlineBinary" "OB" "OW" "OD" "OF" "OL" "OV" Base64 . json2dcm . DICOM JSON JSON BulkDataURI . URI . json2dcm file URI DCM4CHE "offset" "length" URI . HTTP URI URI MIME multipart/related json2dcm . --ignore-bulkdata-uri URI . ( ) json2dcm DICOM JSON DICOM . (Arrays of Data Sets) DICOM JSON JSON DICOMweb WADO-RS QIDO-RS . JSON DICOM json2dcm . JSON . --array-select . --array-sequence (0009,1000) . (0009,0010) "JSON2DCM_LIST_OF_DATASETS" . (Trailing Commas) JSON json2dcm JSON JSON . json2dcm JSON . JSON DICOM JSON . (LOGGING) . . --verbose . --debug . --log-level . --quiet . . "oflog" . ( ) syslog () event log () --log-config . . /logger.cfg . (COMMAND LINE) : (-) (-n) n . '+' '-' . ( ). . . '@' ( @command.txt). ( ). . / ( /dumppat.txt ). (EXIT CODES) dcm2json . . (general) EXITCODE_NO_ERROR 0 EXITCODE_COMMANDLINE_SYNTAX_ERROR 1 (input file errors) EXITCODE_CANNOT_READ_INPUT_FILE 20 (output file errors) EXITCODE_CANNOT_WRITE_OUTPUT_FILE 40 (processing errors) EXITCODE_INVALID_JSON_CONTENT 65 EXITCODE_BULKDATA_URI_NOT_SUPPORTED 66 (ENVIRONMENT) json2dcm DICOM DCMDICTPATH . DCMDICTPATH /dicom.dic ( Windows). DCMDICTPATH . DCMDICTPATH PATH (":") . Windows (";") . DCMDICTPATH . . (SEE ALSO) dcm2json(1) dump2dcm(2) (COPYRIGHT) Copyright (C) 2024-2025 by OFFIS e.V., Escherweg 2, 26121 Oldenburg, Germany. Version 3.7.0 Thu Jul 9 2026 18:43:40 json2dcm(1)