In this JSON tutorial, you will be able to learn JSON fundamentals, example, syntax, array, object, encode, decode, file, date and date format.
What is JSON
- JSON is lightweight data-interchange format.
- JSON is easy to read and write than XML.
- JSON is language independent.
- JSON supports array, object, string, number and values.
Code for reading and generating JSON exists in many programming languages.
Why Use JSON?
Since the format is text only, JSON data can easily be sent between computers, and used by any programming language.
Safe Way For Storing Data
When storing data, the data has to be a certain format, and regardless of where you choose to store it, text is always one of the legal formats.
This example is a JSON string: