Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit aad71f1

Browse files
enhancement and xml related new additions
enhancement and xml related new additions
1 parent 8915fdb commit aad71f1

File tree

1 file changed

+29
-4
lines changed

1 file changed

+29
-4
lines changed

‎readme.md

Lines changed: 29 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Why learn JSON
3838
---------------------
3939
JSON stands for JavaScript Object Notation is text-based and human-readable. JSON has become a widely accepted and popular format for data due to its platform-neutral nature, lightweight format, and it’s the ability to convert directly to native JavaScript Objects. JSON is being used everywhere from Web APIs to NoSQL databases, to server-side language libraries and client-side frameworks.
4040

41-
JSON has significantly improved server-to-browser communications, especially when it comes to AJAX. JSON is better than XML and more popular! Easily exchange data between client and server applications. JSON is easy to use and built for storing and exchanging data.
41+
JSON has significantly improved server-to-browser communications, especially when it comes to AJAX. JSON is better than XML (eXtensible Markup Language) and more popular! Easily exchange data between client and server applications. JSON is easy to use and built for storing and exchanging data.
4242

4343

4444
Course/Tutorial achievement
@@ -88,12 +88,19 @@ Topics included/covered
8888
1.1. What is JSON?
8989
---------------------
9090

91+
<p>
92+
<figure>
93+
<img src="_images-json-javascript-object-notation/json-logo-4.png" alt="JSON - JavaScript Object Notation" title="JSON - JavaScript Object Notation" width="300" border="2" align="right" />
94+
</figure>
95+
</p>
96+
9197
- JSON stands for `JavaScript Object Notation`
9298
- JSON is a syntax for storing and exchanging data
93-
- JSON is a lightweight data-interchange format
99+
- JSON is a lightweight data-interchange, Data representation format
94100
- JSON is `self-describing`, an easier to understand, easy to use and alternative format to `XML (eXtensible Markup Language)` also widely used these days
95101
- JSON is language independent (JSON uses JavaScript syntax, with text-only format,
96102
Text can be read and used as a data format by any programming language)
103+
- JSON is commonly used for APIs and Configurations
97104

98105
```
99106
- The JSON format was specified and popularized by `Douglas Crockford`
@@ -112,6 +119,8 @@ JSON uses, follows and based on Object Literal Notation syntax of JavaScript. JS
112119
1.2. Why use JSON?
113120
---------------------
114121

122+
Other than JSON, XML (eXtensible Markup Language) use to be the only option/alternative for open data interchange.
123+
115124
- JSON is text-based and human-readable, easily exchange data between client and server applications
116125
- it's a lightweight data-interchange format that is quickly becoming the default format for data exchange on the internet today!
117126
- JSON is better than XML and more popular!
@@ -153,7 +162,7 @@ JSON is programming language independent Data Interchange Format - an only text-
153162
- JSON is language independent
154163
- JSON uses, follows and based on Object Literal Notation syntax of JavaScript
155164
- JSON is widely used to exchange, send and receive data from server to client and vice versa
156-
- JSON represent data in the pair of Curley braces and in the form of key-value pairs ie property and data e.g. ` var Employee = { "employeeName": "Dinanath", "employeeId": "101", "empId": 101} `
165+
- JSON represent data in the pair of Curley braces and in the form of key-value pairs ie. property and data/value ie. attribute and data/value e.g. ` var Employee = { "employeeName": "Dinanath", "employeeId": "101", "empId": 101} `
157166
- Transfer data easily between Server and Client
158167

159168
1.6. JSON Syntax
@@ -251,13 +260,16 @@ The JSON format is almost exactly alike to JavaScript objects.
251260

252261
| JSON | XML |
253262
| --------------------------------|---------------------------------------|
263+
| <p align="center"> <img src="_images-json-javascript-object-notation/json-logo-3.png" alt="JSON - JavaScript Object Notation" title="JSON - JavaScript Object Notation" width="200" /> </p> | <p align="center"> <img src="_images-json-javascript-object-notation/xml-logo-2.png" alt="XML - eXtensible Markup Language" title="XML - eXtensible Markup Language" width="200" /> </p>|
254264
| JavaScript Object Notation | eXtensible Markup Language |
255265
| JSON uses `key : value` or `name : value` pair to store data (JSON doesn't use end tag) | XML uses `tags **&lt; value &gt;**, element or node` to store data |
256-
| JSON is shorter | XML is pretty larger/lengthy as we need to open and close tags for every `name` or `key`|
266+
| JSON is shorter, JSON has a more compact style than XML | XML is pretty larger/lengthy as we need to open and close tags for every `name` or `key`|
257267
| JSON is `quicker and easier` to read and write | XML is `little difficult to read and write` as we need to write many tags |
258268
| JSON can use arrays | XML cant use arrays, it uses tags |
259269
| JSON can be `parsed by a standard JavaScript function` | XML has to be `parsed with an XML parser` |
260270
| For AJAX applications, JSON is faster and easier than XML | XML is much more difficult to parse than JSON |
271+
| JSON uses less data overall, so reduces the cost and increases the parsing speed | The XML parsing process can take a long time due to verbose nature of xml and its element structure |
272+
| JSON uses a `map data structure`| XML uses a `tree data structure` |
261273

262274
### 1.7.2. Similarity between JSON and XML
263275

@@ -281,6 +293,8 @@ Both JSON and XML can be used to exchange, send and receive data from a web serv
281293
</Technology>
282294
```
283295

296+
<hr/>
297+
284298
> **Syntax & Example**: `JSON (JavaScript Object Notation) 1.7.2-technology.json`
285299
286300
```
@@ -308,8 +322,19 @@ Both JSON and XML can be used to exchange, send and receive data from a web serv
308322
</figure>
309323
</p>
310324

325+
<hr/>
326+
311327
### 1.8.2. JSON vs XML Trend
312328

329+
<p>
330+
<figure>
331+
<img src="_images-json-javascript-object-notation/xml-logo-1.png" alt="XML - eXtensible Markup Language" title="XML - eXtensible Markup Language" width="125" border="2" align="right"/>
332+
<img src="_images-json-javascript-object-notation/json-logo-4.png" alt="JSON - JavaScript Object Notation" title="JSON - JavaScript Object Notation" width="250" border="2" align="right"/>
333+
</figure>
334+
</p>
335+
336+
<br/>
337+
313338
<p>
314339
<figure>
315340
&nbsp;&nbsp;&nbsp; <img src="_images-json-javascript-object-notation/1.8.2-json-xml-trends-compare.png" alt="JSON vs XML Google Trends" title="JSON vs XML Google Trends" width="1000" border="2" />

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /