+ 3
What is a json file??
I've seen them come up every now and then mostly while learning c++
1 Réponse
+ 7
JSON is JavaScript Object Notation. It is an open standard file format having human readable text in it. JSON and XML are two standard platform independent text format to transmit data between two platforms. It is also used to store data in form of object.
Example :
{
"employees": {
{
"name" : "emp1",
"id" : "1"
},
{
"name" : "emp2",
"id" : "2"
},
{
"name" : "emp3",
"id" : "3"
},
},
"department" : "IT"
}
here in the example, we have an array/collection of employee(which can be an object of class Employee) having attribute name and id. And along with employee list, we have department attribute.