104. Basics of Node
Week 3: Day 2 Section 12: Intro to Node, Mongo, & REST APIs Tutorial 105: Basics of Node In this video, we are going to learn about JSON. JSON (JavaScript Object Notation) is a lightweight data-interchange format. JSON is a syntax for storing and exchanging data. JSON is text, written with JavaScript object notation. It is easy for humans to read and write. It is easy for machines to parse and generate. It is based on a subset of the JavaScript Programming Language Standard ECMA-262 3rd Edition - December 1999. When exchanging data between a browser and a server, the data can only be text. JSON is text, and we can convert any JavaScript object into JSON, and send JSON to the server. We can also convert any JSON received from the server into JavaScript objects. This way we can work with the data as JavaScript objects, with no complicated parsing and translations. Since the JSON format is text only, it can easily be sent to and from a server and used as a data format by any programming language. JavaScript has a built-in function to convert a string, written in JSON format, into native JavaScript objects: JSON.parse().So, if you receive data from a server, in JSON format, you can use it like any other JavaScript object. JSON syntax is derived from JavaScript object notation syntax: Data is in name/value pairs Data is separated by commas Curly braces hold objects Square brackets hold arrays JSON data is written as name/value pairs: "name": "John" A name/value pair consists of a field name (in double quotes), followed by a colon, followed by a value. In JSON, keys must be strings, written with double-quotes. In JSON, values must be one of the following data types: a string, a number, an object (JSON object), an array, a boolean, null. Full Stack Web Development in Just 3 weeks Published by WB Web, Under free promotions, Watch All the videos for free for a limited time. You can buy the course from Udemy for lifetime access. Udemy Course Link: https://www.udemy.com/ultimate-web/ Content Credit: Mark Price https://www.devslopes.com/ Hosted By WB Web Development Solutions
Download
0 formatsNo download links available.