make parsing events not break for JSON