Dump a dicom file in JSON format

Dump a dicom file in JSON format
Sometimes the metaheader is empty

The metaheader is empty in some cases.
Therefore, the separator should not be printed