Skip to content

Instantly share code, notes, and snippets.

@mizrael
Created September 20, 2015 08:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mizrael/2e3739834a375c091729 to your computer and use it in GitHub Desktop.
Save mizrael/2e3739834a375c091729 to your computer and use it in GitHub Desktop.
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