Recently I was working on a Remote validation in a sample MVC App and researched about usign it in my controller .. I bumped across JsonResult action which was used in a controller class . Upon further getting into JSON, I learned that Json is very much similar to XML which uses data to be stored and trasnported , however it has more advantages if you compare the two
Lets get into the Advantages now …
1.In JSON there is no extra padding required and so space used is quite less for storing the data and so it works faster as compared to XML.
2.Json also use a simple easy to understand syntax. Also it uses Javascript syntax for describing dataobjects. Because of this similarity, instead of using a parser,JavaScript program can use the built-in eval() function and execute JSON data to produce native JavaScript objects.
3.Also Json uses Arrays ..
To learn more ,please check all about it on the below site, which will clear all your doubts
No comments:
Post a Comment