You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- JSON is a syntax for storing and exchanging data
100
101
- JSON is a lightweight data-interchange, Data representation format
101
102
- JSON is `self-describing`, an easier to understand, easy to use and alternative format to `XML (eXtensible Markup Language)` also widely used these days
102
-
- JSON is language independent (JSON uses JavaScript syntax, with text-only format,
103
-
Text can be read and used as a data format by any programming language)
103
+
- JSON is often used with `AJAX (Asynchronous JavaScript and XML)`
104
+
- JSON is language independent (JSON uses JavaScript syntax, with text-only format, Text can be read and used as a data format by most/any modern programming language)
104
105
- JSON is commonly used for APIs and Configurations
105
106
106
107
```
@@ -355,7 +356,7 @@ Json supports values of the following data types:
355
356
| Object | Most complex but widely used Data types <br/> ` { "key": "value" } { "name": "Dinanath", "id": 101 }`|
356
357
| 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"]`|
@@ -364,3 +365,80 @@ JSON values cannot be of following data types:
364
365
- a date
365
366
- undefined
366
367
```
368
+
369
+
370
+
1.10. Access-Modify JSON object data
371
+
---------------------
372
+
373
+
JavaScript object or JSON object data can be accessed and modified by two syntax or ways:
374
+
- Dot notation syntax
375
+
- Square bracket syntax
376
+
377
+
### 1.10.1. Dot notation
378
+
To access, read or modify JSON object data, we simply need to use property name with `. dot notation`, will get all IntelliSense as soon as will use any `jsonObjectName.propertyName` or so.
379
+
380
+
As soon as we assign JSON format/values to any JavaScript variable, it becomes a JavaScript object to which we can access via `. dot notation`.
381
+
382
+
```jsonObjectName.propertyName``` or ```TechnologyJSON.technologyName```
383
+
384
+
### 1.10.2. Square bracket
385
+
Second or another way to access, read or modify JSON object data is Square bracket notation
386
+
387
+
```jsonObjectName.['propertyName']``` or ```TechnologyJSON.['technologyName']```
0 commit comments