Code Snippet - Sample Code for Beautify Json
2015/5/11 min read
bookmark this
<div id="test"></div>
<style>
#test { white-space: pre; font-family: monospace; }
</style>
<script>
var qobj = @Html.Raw(JsonConvert.SerializeObject(Model.SomeKindOfObject));
document.getElementById("test").innerHTML = JSON.stringify(qobj, null, 4);
</script>