请教JSON中指定的值怎么复制给变量😁

用的是iosAutoTouch获取屏幕的指定位置的数值,但是它会把很多坐标也连带写进日志,😅刚研究一天,没学过JS,想请教下大佬们有办法能单独把Example的值提出来赋值给变量嘛?如下图

img

var test=result[0].test//Example
var bottomRightx=result[0].rectangle.bottomRight.x
var bottomRighty=result[0].rectangle.bottomRight.y
var topRightx=result[0].rectangle.topRight.x
var topRighty=result[0].rectangle.topRight.y
//其他2个同理获取

result.forEach(item => {
    console.log(item.text)
})