Hello all,
I just have a question regarding JSON and loading a big database file. I’m sure there is a simple way to do this it’s just going over my head. So basically I have a JSON database set up as follows;
{ "ID #": 1000, "Sport": "MLB", "Team": "sportsteam", "Image": "1.jpg", "Description": "blah blah" }, { "ID #": 1001, "Sport": "MLB", "Team": "sportsteam", "Image": "2.jpg", "Description": "blah blah 2" }, { "ID #": 1002, "Sport": "MLB", "Team": "sportsteam", "Image": "3.jpg", "Description": "blah blah 3" },
I was wondering if there was a way I could call to a specific set of the data above using the ID # which would then call to the other parameters in that specific set, for images and text. So for example a user would tap a button that set the ID # to 1001 then it would take them to a page that shows the image and description that corresponds, so in this case 2.jpg and description “blah blah 2”. I just cant figure out how to single out one portion of the database to then use as an image or text. Any help would be amazing.
Thank you!
-B
