There are times when I’m working with JavaScript Object Notation getting passed or returned from APIs and I need to troubleshoot how I’m parsing the array that’s returned. However, most of the time it’s difficult because it’s just a single string. That’s when a JSON Viewer comes in very handy so that you can indent the hierarchical data and then scroll through to find out the information you need.
JSON (JavaScript Object Notation) is a lightweight data-interchange format that is easy for humans to read and write and easy for machines to parse and generate. It is based on a subset of the JavaScript programming language, and is used to represent data structures in a text format that can be sent and received over a network.
Source: JSON
A JSON object is an unordered collection of key-value pairs, where each key is a string and each value can be a string, number, boolean, null, array, or another JSON object. The key-value pairs are separated by commas and surrounded by curly braces {}
.
{
"name": "John Doe",
"age": 35,
"isMarried": true,
"address": {
"street": "123 Main St.",
"city": "Anytown",
"state": "CA"
},
"phoneNumbers": [
"555-555-1212",
"555-555-1213"
]
}
JSON is advantageous because it’s 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. JSON is a text format that is completely language-independent but uses conventions that are familiar to programmers of the C family of languages and is natively supported by C, C++, C#, Java, JavaScript, Perl, PHP, Python, and many others. These properties make JSON an ideal data-interchange language.
See The Rest Of Our Martech Zone Apps
Source by [pin_pinner ]
Source by [pin_pinner ]
The art of attracting and selling to customers is undergoing rapid and unprecedented transformation. To…
Source by [pin_pinner ]
Listen to this blog The latest social media statistics prove that Instagram is a powerhouse…