How will I be able to fetch the content URL from stage envt from the below json using shared array:
I was using below code for json files without nesting:
var TestEnvtURL = new SharedArray("Test Envt Links", function () {
return JSON.parse(open('./data/dataURL.json')).TestEnvt;
});
@imiric @mstoykov how can I handle nesting in the same line of code as above.
{
"TestEnvt": [
{
"content_url": [
"/p/20009789466",
"/p/20009789466",
"/p/20009789566",
],
"images_url": [
"mx/20009789466",
"mx/20009789466",
"mx/20009789566",
]
}
],
"StageEnvt": [
{
"content_url": [
"/p/20009789455",
"/p/20009789455",
"/p/20009789555",
],
"images_url": [
"mx/20009789455",
"mx/20009789455",
"mx/20009789555",
]
}
],
"ProdEnvt": [
{
"content_url": [
"/p/20009789422",
"/p/20009789422",
"/p/20009789522",
],
"images_url": [
"mx/20009789422",
"mx/20009789422",
"mx/20009789522",
]
}
]
}