initial json post request for data to server