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

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -