private void Button_Click(object sender, RoutedEventArgs e) { var response = JsonHandler.Serialize(ConnectionHandler.GetMethodAsync("public/getmarkets").Result.ToString()); //TextBlock1.Text = response.Result.ToString(); }