private void btnSendProfileRequest_Click(object sender, RoutedEventArgs e) { tbJsonResponse.Clear(); ProfileInfo profileInfoResponse = DiabloService.GetProfileInfo(RequestParameters.REGIONS.EU, tbBattleTag.Text, "en_GB", tbApiKey.Text); string output = JsonConvert.SerializeObject(profileInfoResponse, Formatting.Indented, new JsonSerializerSettings { NullValueHandling = NullValueHandling.Ignore }); tbJsonResponse.Text = output; }