emit specific events asuming data is json.