added sending JSON to server