JSON- JavaScript Object Notation

About JSON File Extension

The file extension for a JSON file is .json. JSON stands for JavaScript Object Notation and is a popular data format used for data interchange between applications. It is a lightweight, text-based and human-readable format. JSON files are typically used to store data that can be read by a wide variety of applications and programming languages.

JSON File Structure

{
“name”: “John Doe”,
“age”: 35,
“address”: {
“street”: “123 Main Street”,
“city”: “New York”,
“state”: “NY”,
“zip”: 10001
},
“phoneNumbers”: [
{ “type”: “home”, “number”: “212-555-1234” },
{ “type”: “mobile”, “number”: “646-555-4567” }
],
“emailAddresses”: [
{ “type”: “work”, “address”: “mailto:john@example.com” },
{ “type”: “personal”, “address”: “mailto:jdoe@gmail.com” }
]
}

How to Open a JSON File

JSON files can be opened using any text editor, such as Notepad or TextEdit on Windows and Mac, or with a code editor, such as Sublime Text, Atom, or Visual Studio Code. They can also be opened and edited with a web-based JSON editor.

Programs that Open JSON Files

– Web Browsers
– Text Editors
– Microsoft Visual Studio Code
– Microsoft Notepad++
– Apple Xcode
– Adobe Dreamweaver
– Mozilla Firefox
– Google Chrome
– Apple TextEdit
– JetBrains WebStorm
– Adobe Brackets
– Microsoft Visual Studio

JSON Character Set

JSON character set is a set of characters that are allowed in a valid JSON string. The JSON character set includes all of the following characters:

Uppercase and lowercase letters (A-Z, a-z)
Numbers (0-9)
Punctuation marks and special characters (such as #, @, $, %, &, *, +, -, ., ?, etc.)
Whitespace (space, tab, line feed, carriage return)
Braces ({, })
Brackets ([, ])
Colons (:)
Commas (,)
Quotes (“, ‘)
Slashes (/, \)
Backslashes (\).

error: Content is protected !!