working on posting json object to server