Created
October 1, 2018 14:18
-
-
Save andre-f-paggi/e09426008cbd93d499dfbf7533034e7c to your computer and use it in GitHub Desktop.
Serialize C# object to JSON in immediate window
This file contains hidden or 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
Newtonsoft.Json.JsonConvert.SerializeObject(myObj, Newtonsoft.Json.Formatting.None, new Newtonsoft.Json.JsonSerializerSettings(){ ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Ignore }) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment