JsonSource emits DicomEvents
very, very basic encoder