sending a request to the server json