Update request handler to handle json files