Format the json for requests