Skip to content

Instantly share code, notes, and snippets.

View timbeynart-nbcuni's full-sized avatar

Tim Beynart timbeynart-nbcuni

View GitHub Profile
@timbeynart-nbcuni
timbeynart-nbcuni / A SceneGraph JSON Feed Example.md
Last active January 11, 2023 17:38
Code examples for parsing a JSON feed into a RowList

This example shows how to load a JSON feed into a ScenGraph RowList in Roku. It's not a complete application. This code started life as Simple_Grid_with_Details_and_Video, available here: https://blog.roku.com/developer/2016/03/03/scenegraph-tutorial/

The json_parser.brs file has the brightscript code to load the feed data (represented by the contents of data.json). The data is then translated into an array of MediaItems. MediaItem is an extended ContentNode. Then the data is structured to load into a RowList, which is represented in GridScreen.xml.