From 424d415cdcec16855812f99a2874f03fef0bd7b3 Mon Sep 17 00:00:00 2001 From: David Fiattarone <89920093+Fiattarone@users.noreply.github.com> Date: Sun, 2 Apr 2023 14:17:28 -0700 Subject: [PATCH] Update readme.md Fix grammar, syntax and formatting. --- step00a_json_objects/readme.md | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/step00a_json_objects/readme.md b/step00a_json_objects/readme.md index 8c428293..ade01d50 100644 --- a/step00a_json_objects/readme.md +++ b/step00a_json_objects/readme.md @@ -14,19 +14,19 @@ } -But wait, Is JSON is similar to javaScript objects? +But wait, is JSON similar to javaScript objects? The Answer is No. -1. JavaScript objects can contain functions but JSON not. +1. JavaScript objects can contain functions but JSON can not. 2. JavaScript objects can only be used in JavaScript but JSON can be created and used by other programming languages. ## JSON Data 1. JSON data consists of key/value pairs similar to JavaScript object properties. -2. The key and values are written in double quotes separated by a :. -3. Example : +2. The key and values are written in double quotes separated by a "." +3. Example: // JSON data @@ -38,7 +38,7 @@ The Answer is No. 1. The JSON object is written inside curly braces { }. 2. JSON objects can contain multiple key/value pairs. -3. Example : +3. Example: // JSON object @@ -47,7 +47,7 @@ The Answer is No. ## JSON Array 1. JSON array is written inside square brackets [ ]. -2. Example : +2. Example: // JSON array @@ -55,8 +55,8 @@ The Answer is No. ## Accessing JSON Data -1. We can access JSON data using the dot notation. -2. Example : +1. We can access JSON data using dot notation. +2. Example: // JSON object @@ -64,10 +64,10 @@ The Answer is No. // accessing JSON object - console.log(detail. name); // Vipin + console.log(detail.name); // Vipin 3. We can also use square bracket syntax [] to access JSON data. -4. Example : +4. Example: // JSON object @@ -83,9 +83,10 @@ The Answer is No. console.log(detail["age"]); // Vipin ## Use of JSON + 1. JSON is the most commonly used format for transmitting data (data interchange) from a server to a client and vice-versa. -2. JSON data are very easy to parse and use. -3. JSON is language independent(We can create and use JSON in other programming languages too). +2. JSON data is very easy to parse and use. +3. JSON is language independent (We can create and use JSON in other programming languages too). ## Examples of JSON