display my json list of customers in asp.net mvc with jquery -


i have customer list object server , want display in view. what's best way this? instance, showing customers in div on page

it depends on business , how want display it. there no generic solution this. in case want display json "as is" (don't know why you'd to this, maybe debugging), put inside pre:

<div> <pre id="pre"></pre> </div> ... $("#pre").html(json.stringify(jsonobject)); 

json.stringify work on modern browsers. but, (i insist), there no "correct" answer question, depends on "business" needs.


Comments

Popular posts from this blog

Python __call__ special method practical example -

How can I edit my VIM config so that Vim treats ".ejs" files the same as it currently treats my html files? -