Support json events and streaming