Finished the geteventswithinhour method and it returns a proper json object