Lets discuss something new and interesting points related to latest technology JSON.
While returning data in ajax call of jQuery we generally convert into string and then IIS serialize the data.
But .Net 4.0 provides the DataContractJSONSerializer class which automatically converts any datatype to string datatype (i.e. generic list/any type of data can be serialized using this class and returned back in form JSON).
Showing posts with label jQuery. Show all posts
Showing posts with label jQuery. Show all posts
Tuesday, September 20, 2011
Serializing into JSON using .Net 4.0 classes
Learn by diving in Programming Ocean...
Happy Programming!!!
Labels:
.Net,
jQuery,
JSON,
Programming Tips
Parsing JSON using jQuery
Lets discuss something new and interesting points related to latest technology jQuery & JSON.
Many of us might have worked in it and others don't need to worry as in future they will surely work in it.
Recently I came across one thing that "While using JSON we require parse_json.js file (plugin), but according to me this file is not at all required. As parse json function is already included in default jQuery pre-requisite file (.js) only. "
To refer the complete syntax visit: http://api.jquery.com/jQuery.parseJSON/
Many of us might have worked in it and others don't need to worry as in future they will surely work in it.
Recently I came across one thing that "While using JSON we require parse_json.js file (plugin), but according to me this file is not at all required. As parse json function is already included in default jQuery pre-requisite file (.js) only. "
To refer the complete syntax visit: http://api.jquery.com/jQuery.parseJSON/
Learn by diving in Programming Ocean...
Happy Programming!!!
Labels:
jQuery,
JSON,
Programming Tips
Subscribe to:
Posts (Atom)