Move the Json read/write code to Event Util