added toJSON for streamsArray