now emits one json object per event.