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
Post a Comment