The JSON file looks like below:
{
"id": "41",
"title": "428: SHIBUYA SCRAMBLE",
"saving": "16,50",
"imageUrl": "../used-games-generic.jpg"
}, {
"id": "42",
"title": "8 DAYS: PEACEKEEPER ED",
"saving": "3,50",
"imageUrl": "../used-games-generic.jpg"
}, {
"id": "43",
"title": "9 MONKEYS OF SHAOLIN",
"saving": "10,00",
"imageUrl": "../used-games-generic.jpg"
}, {
"id": "44",
"title": "A.O.T.2 FINAL BATTLE",
"saving": "6,00",
"imageUrl": "../used-games-generic.jpg"
}, {
"id": "45",
"title": "ACES OF THE LUFTWAFFE SQUADRON ED",
"saving": "6,50",
"imageUrl": "../used-games-generic.jpg"
}, {
"id": "46",
"title": "ADR1FT",
"saving": "3,50",
"imageUrl": "../used-games-generic.jpg"
}
How can I read the JSON file inside of jQuery function and fill with the relative information three arrays?
array.gameTitle = []
array.gameSaving= []
array.gameImageUrl= []
question from:
https://stackoverflow.com/questions/65845100/how-to-read-a-json-file-and-fill-arrays-in-jquery 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…