# Convert JSON to dicom

**URL:** <https://discourse.orthanc-server.org/t/convert-json-to-dicom/1535>\
**Category:** Google Groups archive\
**Created:** [June 25, 2019, 5:26am UTC](https://discourse.orthanc-server.org/t/convert-json-to-dicom/1535 "2019-06-25T05:26:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mohsin\_Ather](https://discourse.orthanc-server.org/letter_avatar_proxy/v4/letter/m/e68b1a/32.png) [@Mohsin\_Ather](https://discourse.orthanc-server.org/u/Mohsin_Ather)\
**Post date:** [June 25, 2019, 5:26am UTC](https://discourse.orthanc-server.org/t/convert-json-to-dicom/1535/1 "2019-06-25T05:26:21Z")

</div>

I want to convert JSON i.e

“00080016” : {  
“vr” : “UI”,  
“Value” : [  
“1.2.840.10008.5.1.4.1.1.12.1”  
]  
},  
“00100020” : {  
“vr” : “LO”,  
“Value” : [  
“23444423”  
]  
} …  
to dicom, how can i do that ?

---

<div class="post-metadata">

**Author:** ![jodogne](https://discourse.orthanc-server.org/user_avatar/discourse.orthanc-server.org/jodogne/32/1511_2.png) [@jodogne](https://discourse.orthanc-server.org/u/jodogne)\
**Post date:** [June 25, 2019, 8:03am UTC](https://discourse.orthanc-server.org/t/convert-json-to-dicom/1535/2 "2019-06-25T08:03:30Z")

</div>

Hello,

The following post mostly answer your question:  
[https://groups.google.com/d/msg/orthanc-users/oPl1wqVxgK4/Rft4VZuaBwAJ](https://groups.google.com/d/msg/orthanc-users/oPl1wqVxgK4/Rft4VZuaBwAJ)

In your case, first convert your JSON encoded using the DICOMweb convention, into the Orthanc convention:

{  
“00080016” : “1.2.840.10008.5.1.4.1.1.12.1”,  
“00100020” : “23444423”,  
…

}

Then, call “/tools/create-dicom” as explained in the other thread.

This process can obviously be automated using a C/C++ plugin:  
[https://book.orthanc-server.com/developers/creating-plugins.html](https://book.orthanc-server.com/developers/creating-plugins.html)

HTH,  
Sébastien-
