Created
September 20, 2015 08:07
-
-
Save mizrael/2e3739834a375c091729 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var myClassInstance = new MyClass(); | |
// blah | |
string jsonData = JsonConvert.SerializeObject(myClassInstance, Formatting.Indented, new JsonSerializerSettings | |
{ | |
TypeNameHandling = TypeNameHandling.Objects, | |
TypeNameAssemblyFormat = System.Runtime.Serialization.Formatters.FormatterAssemblyStyle.Simple | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment