. I am building an utility to manage mongo database. I am using visual studio 2010 and framework 4.0. Now, when display documents , they are not formatted thus not understandable. I just want to beautify it with indentations and line breaks without serializing it; since I am not working with objects. I just got document and I want to format them. For this , I have tried JsonPrettyPrinter.dll but it uses framework 3.5. I have json.net but I dont know how to use it for formatting. Please tell me the way of doing it.
Share
If you’re using JSON.NET, you can use this code to format (pretty-print) the JSON document: