Есть JSON
{"server_id":182507,"page":1,"data":[{"nickname":"Waidelos","place":1,"time":45390,"last_visit":1553199600},{"nickname":"5opka","place":2,"time":34100,"last_visit":1553224805},{"nickname":"Abashev","place":3,"time":32400,"last_visit":1553281814},{"nickname":"K_i_t_n_e_s_s","place":4,"time":31480,"last_visit":1553233206},{"nickname":"mafiozznik","place":5,"time":27600,"last_visit":1553284815}],"status_query":"ok"}
Нужно извлечь данные из него и рассортировать по местам nickname place
vk.updates.hear(/^(?:СП Топ-10)$/i, async (context) => {
axios.get(`https://minecraft-statistic.net/api/server/info/145.239.133.118_25565`).then(res => {
if(res.data && res.data.nickname) {
let nickname = res.data.nickname || 0
if(res.data && res.data.place) {
let place = res.data.place || 0
}
return context.send ({${nickname} - Место ${place}:\n}