c# get json object from the immediate window?

JavaScript
Newtonsoft.Json.JsonConvert.SerializeObject(someVariable)
Source

Also in JavaScript: