Blogging Task 7: research JSON and its strong relationship to JavaScript object literal notation; write a blog post about its strengths and weaknesses, particularly in comparison to XML
research JSON and its strong relationship to JavaScript object literal notation; write a blog post about its strengths and weaknesses, particularly in comparison to XML
What is JSON?????
JSON, also called ‘JavaScript Object Notation), is a method that hierarchically represent information as XML and it also dynamically express data.
- JSON format: There are three main formats that are Object, Array, and Value.
- Strengths of JSON:
1) JSON is very compact (also JSON is generally smaller than a XML document and there for faster to work with!!): JSON can structurally express information through using some [], {}. SGML’s language, such as XML, can occur easily because there are lots of letters where are in <tag>..</tag>. So it makes users to be hard to find error and the size of data is bigger.
2) Use of JSON parser is more simple then use of XML parser.
- Weaknesses of JSON
1)JSON’s format is very hard to read for humans: It is most important disadvantage of JSON because the format is very hard to read for humans, and that, of course, every single comma, quote, and bracket should be in exactly the correct place. While this is also true of XML, JSON’s welter of complicated-looking syntax, like the }}]} at the end of the data snippet, may frighten the newbies and make for complicated debugging.