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 c6c9310

Browse files
chapter 1 - sub chapter 1.8 uploaded
chapter 1 - sub chapter 1.8 uploaded
1 parent aad71f1 commit c6c9310

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

‎readme.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ Topics included/covered
7777
- 1.6. [JSON Syntax](#16-json-syntax)
7878
- 1.7. [JSON vs XML](#17-json-vs-xml)
7979
- 1.8. [JSON vs XML Trends](#18-json-vs-xml-trends)
80+
- 1.9. [JSON Data Types](#19-json-data-types)
8081

8182
<!--
8283
2. [JSON Resources](#2-json-resources)
@@ -341,3 +342,25 @@ Both JSON and XML can be used to exchange, send and receive data from a web serv
341342
<figcaption>&nbsp;&nbsp;&nbsp; Image - JSON vs XML Google Trends</figcaption>
342343
</figure>
343344
</p>
345+
346+
1.9. JSON Data Types
347+
---------------------
348+
349+
Json supports values of the following data types:
350+
351+
| JSON Valid Data Types | Data Types Description |
352+
| ------------------------------------------|---------------------------------------|
353+
| String | Strings in JSON must be written in double quotes <br/> `"Hello", "Dinanath", "I/We"` |
354+
| Number | Numbers in JSON can be an integer or a floating point supports all types of numbers - complete number, decimal, negative number, scientific notation number) <br/> `10, 2.5, -10, 2.5e10` |
355+
| Object | Most complex but widely used Data types <br/> ` { "key": "value" } { "name": "Dinanath", "id": 101 }` |
356+
| Array | JSON value can be array which holds multiple items of various data types <br/> `[1,2,3,4,5] ["Dinanath", "Akash", "Ambar", "Sagar", "Suraj"]` |
357+
| Boolean | true or false <br/> ` { "isDone":true }` |
358+
| null | null (nothing) <br/> `{ "status":null }` |
359+
360+
```
361+
JSON values cannot be of following data types:
362+
363+
- a function
364+
- a date
365+
- undefined
366+
```

0 commit comments

Comments
(0)

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