Implemented JSON parsing for events file