json to server working