visual studio debug object to json code example Example: c# get json object from the immediate window? Newtonsoft.Json.JsonConvert.SerializeObject(someVariable)