Serialize during debug in Visual Studio
Tags: .NET, Visual Studio
Often during debugging we need to have a serialized version of an object. Usually we need this to get the serialized object and use it in another tool or parser.
An easy way of doing this is during debugging open the Immediate Window and type the following
The output of this will be a JSON version of the objectToSerialize.