Answer the question
In order to leave comments, you need to log in
How to check if there are more objects in an object in JSON?
Hello everyone
, Here is my list of elements:
function getJson(file, template, container) {
$.getJSON(file, function (data) {
})
}
{
"item_1": {
"img": "img/f.jpg",
"article": "Glasses are cool",
"price": "599"
},
"item_2": {
"img": "img/g.jpg",
"article": "Glasses are not so cool",
"price": "699"
},
"item_3": {
"img": "img/s.jpg",
"article": "Glasses are beautiful",
"price": "799"
}
}
{
"item_3": {
"img": "img/s.jpg",
"article": "Glasses are beautiful",
"price": {
"value": "322",
"real":"yes"
}
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question