“Ejemplo JSON” Código de respuesta

Ejemplo JSON

{
    "name": "Muhammad Ishaq",
    "gender": "Male",
    "age": 23,
    "address": {
        "street": "87",
        "city": "Gultari Matyal Skardu",
        "state": "Gilgit Baltistan",
        "postalCode": "16350"
    },
    "phoneNumber": [
        { "type": "personal", "number": "116263747" }
    ]
}
Isaac

crear un objeto JSON en JavaScript

var employee = {
  "firstName": firstName,
  "lastName": lastName
}
Precious Panther

Ejemplo de datos JSON

[{"_id":"60beb338abe3dd4300d844b8","email":"[email protected]","typeVaccine":"Moderna","status":"Yes","__v":0},{"_id":"60bf716b145de95f1c84fb2f","email":"[email protected]","typeVaccine":"Asternzcana","status":"No","__v":0},{"_id":"60bf7196145de95f1c84fb31","email":"[email protected]","typeVaccine":"Phizer","status":"Yes","__v":0},{"_id":"60bf758f145de95f1c84fb32","email":"[email protected]","typeVaccine":"none","status":"No","__v":0}]
Helpful Heron

objeto json

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

Ejemplo JSON

 const x = {a:"aaaaa", b: function(){return this.a}, c: function(){this.a}};
 console.log(x.b());
/* const x = {a:"aaaaa", b:  this.a, c: this.a};
 console.log(x.b);
 will return undefined
*/
Javasper

JSON USE EJEMPLO

function get(value, p)
{
console.log(p[value]);
}
get("x", {x:"XXX%%$$$%$%#$%#"});
Javasper

Respuestas similares a “Ejemplo JSON”

Preguntas similares a “Ejemplo JSON”

Más respuestas relacionadas con “Ejemplo JSON” en JavaScript

Explore las respuestas de código populares por idioma

Explorar otros lenguajes de código