Can someone assist me in retrieving data from a JSON array file stored at the following link?
Html
<div>
<div v-for="data in myJson.id " >{{ data }}</div>
</div>
js
import json from '.././json/data.json'
export default {
components: {
MainLayout,
},
data: function(){
return {
myJson:json
}
},
method:{
getjson:function(){
this.json = JSON.parse(myJson);
}
}
}
I need to retrieve specific data only by using the unique ID, but I'm having trouble with the current syntax.
Click to https://i.sstatic.net/8TX6B.png access the JSON file