Serialize requests to json before writing to disk