Code Snippet - Sample Code for Beautify Json

2015/05/011 min read
bookmark this
Responsive image

    #test { white-space: pre; font-family: monospace; }


    var qobj = @Html.Raw(JsonConvert.SerializeObject(Model.SomeKindOfObject));
    document.getElementById("test").innerHTML = JSON.stringify(qobj, null, 4);