JSON format in a nutshell
JSON is a human-readable text format commonly used for data transmission in web applications, especially JavaScript applications. However, it is also used for many other purposes, hence it is independent of JavaScript and can be used for any programming language or platform, despite its name.
In this example, we will learn about JSON format and how to verify whether your JSON data is in a valid format or not.
How to do it…
Let’s get started and learn how to write your own JSON data and verify its format:
- Open up your web browser and go to the JSONLint Online Validator and Formatter website at https://jsonlint.com.
- Write the following JSON data in the text editor on the website:
{ "members": [ { "name": "John", ...