首页 > 解决方案 > Average Sub-Array Data from JSON

问题描述

I would like to get the average of data in sub-array from json by axios call

JSON Data

标签: jsonvue.jsaxios

解决方案


Just parse this answer (JSON.parse), iterate over votes, sum vote values and then divide the sum by length of votes table. Simple as that.


推荐阅读