added http request to send the json