private void ButtonBase_OnClick(object sender, RoutedEventArgs e) { var testList = new List<string>(); testList.Add("hallo welt"); testList.Add("hello world"); MessageBox.Show(LibWithoutWpfStuff.UsingJsonNet.ToJson(testList)); }