Looking for a simple example of loading text & images from a json file. I’ve searched the forums a lot and nothing that was strictly just that.
For example I’d like to load the following json. Let’s call it animation-text.json.
{
"mydata" : {
"block-a" : {
"text-1" : {
"option-0": "Dude",
"option-1": "Awesome",
"option-2": "Bogus",
"option-3": "WTF",
"option-4": "Strange"
},
"title" : "Click bait stinks",
"subtitle" : "I've got nothing!"
},
"block-b" : {
"text-1" : {
"option-0": "Dude",
"option-1": "Awesome",
"option-2": "Bogus",
"option-3": "WTF",
"option-4": "Strange"
},
"title" : "Thought of something new",
"subtitle" : "Still have nothing.",
"graphic" : "./images/fielname.png"
}
}
}
Then how would I apply values to different elements?
If someone could share an example file, that would be of huge help. I do well with reverse engineering.