added json representation of datastream