Q:

w3schools json

var myObj, x;
myObj = {"name":"John", "age":30, "car":null};
x = myObj.name;
document.getElementById("demo").innerHTML = x;
3

  myObj =
  {
  "name":"John",
  "age":30,

    
  "cars": [
    { "name":"Ford", 
  "models":[ "Fiesta", "Focus", "Mustang" ] },
    
  { "name":"BMW", "models":[ "320", "X3", "X5" ] },

      
  { "name":"Fiat", "models":[ "500", "Panda" ] }

    ]
 } 
0
 "users": [
{
"username": "Mohamed",
"email": "[email protected]",
"password": "123"
},
{
"username": "Ahmed",
"email": "[email protected]",
"password": "123"
}
]
0

New to Communities?

Join the community