K
K
kuzubina2019-06-05 19:33:15
JavaScript
kuzubina, 2019-06-05 19:33:15

How to select these values ​​from json?

Can you please tell me how to get these values ​​in a JSON file in JS?
joxi.ru/J2bYoKxF0w3X7m
Thank you)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Immortal_pony, 2019-06-05
@kuzubina

var data = {...}; // ваш json
var lastGameHomeScore = data.pointByPoint.games[0].score.homeScore;
var lastGameAwayScore = data.pointByPoint.games[0].score.awayScore;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question