I want to include an if-else condition in json based on which I need to set an attribute in the json file.
Ex:-
"identifier": "navTag",
"items": [{
"label": "abc",
"url": "yxz.com",
},
{
"label": "abc1",
"url": "yxz1.com",
},
{
"label": "abc2",
"url": "yxz2.com",// *I need to change this value on certain
condition like if condition is true then
"url": xyz2.com if false "url":xyz3.com*
}
]
}
Hope the question is clear.. Any help will be appreciated Thanks
Aucun commentaire:
Enregistrer un commentaire