drinkrain
9 years agoVisitor
Json Api help!
Hi, I recently started building a Roku app. I noticed that there are a very limited amount of resources. This forum has been very helpful! I was wondering if you could give me some insight: I am...
"destruk" wrote:
About a third of the utility/value of Roku is the ability to read content data from the internet. It can read rss / xml / json / txt, and any other format that you can retrieve and program the app to make sense of. When rebuilding the parsing routines, or modifying them to fit your content stream, speed is a key requirement. I haven't looked at the "hero grid" code, but it is extremely popular. If you put in a stop after the data is parsed, but before values are assigned, you can use the debugger to see what is there by printing the variable, and trying to get data out of the parsed array. Ideally, for a content node, you would want to use setfields() as it is the fastest way to push data into a content node but to do that your source feed tags/names need to match what a content node uses.
Note that "Artist" is not currently included in the scenegraph content node, so you would need to use addfield to add it during runtime if you want to use that.
https://sdkdocs.roku.com/display/sdkdoc/ifSGNodeField
https://sdkdocs.roku.com/display/sdkdoc ... +Meta-Data