Get value from another array based on ID
-
Hi – Firstly this is a great plugin. Thank you!
My json has an array called ‘feeds’ for example:
“feeds”: [
{
“uid”: 21,
“fsid”: 21,
“title”: “My Test Website”,
“url”: “www.mytestwebsite.com”,
“icon”: “”,
“type”: “RSS”,
“disableWebViewBanners”: 1
},
…. etc etcI then have another array of feed items in the same json file called ‘feedItems’ where the fsid number is referenced for each story:
feedItems”: [
{
“fiid”: “453_160643”,
“fsid”: 21,
“date”: “2016-10-11 23:22:00”,
“text”: “Story goes here”,
“url”: “URL to story goes here”,
“images”: []
},
….. etc etcI loop through the feedItems and the stories are all coming in, but how can I get the 21 from the fsid to output “My Test Website”? Is that possible? Thank you.
The topic ‘Get value from another array based on ID’ is closed to new replies.