Hello, How can i preview the JSON output of an MVC Action that uses Jsonresult?
Thanks...any options for IE?
femi
2010-08-25 15:11:01
A:
I would go for the firefox Firebug plugin,
Or you can use some "proxiing" tool like TCPMon https://tcpmon.dev.java.net/ (java) or one is provided with MS SOAP toolkit http://www.microsoft.com/downloads/details.aspx?FamilyId=C943C0DD-CEEC-4088-9753-86F052EC8450&displaylang=en
Hurda
2010-08-20 00:02:15
A:
i use this small piece of code to dump the json object
function dump(obj) {
var out = '';
for (var i in obj) {
out += i + ": " + obj[i] + "\n";
}
alert(out);
// or, if you wanted to avoid alerts...
var pre = document.createElement('pre');
pre.innerHTML = out;
document.body.appendChild(pre)
}
Stefanvds
2010-08-20 17:12:51