我有以下JSON對象。如何閱讀json
{"feed":[
{"news":
{"adopted_from":null,"user_id":null,"description":"this is test","id":2}
},
{"news":
{"adopted_from":null,"user_id":null,"description":"like unlike done","id":1}
}
]}
我想要檢索的新聞ID。我嘗試了許多不同的方式(例如feed[0].news.id
,feed.news.id
,feed[[0].news.id]
),但無法訪問該值。任何人都可以幫助我如何使用JavaScript訪問它?