write found events to file in json format