prints JSON from server to the activity