makes the json request