I have the following JSON object that I receive from an API endpoint, how do I access description property of this object - "description" : "Dorian Market 1"?
let markets = {
"result":[
{
"townId" : "MEBD",
"storeId" : "1",
"address" : "Presernova 1",
"description" : "Dorian Market 1",
"minOrderValue" : "500",
"notes" : ""
}
,
{
"townId" : "MEBD",
"storeId" : "1",
"address" : "Presernova 2",
"description" : "Dorian Market 2 ",
"minOrderValue" : "500",
"notes" : ""
}
]
}
Is this the right way. markets.result[0].description, is this the right way?