calling JSON attribute of event "event" instead of "type"