Fix JSON view for events