content: sub init()
      m.rowlist = m.top.findNode("rowlist")
      m.rowlist.setFocus(true)
      createTask()
  end sub
  
  sub createTask()    
      request = {
          method          : "GET"
          url             : "https://jonathanbduval.com/roku/feeds/roku-developers-feed-v1.json"
          certificateFile : "common:/certs/ca-bundle.crt"
      }
     
      m.httpTask = createObject("roSGNode", "httpTask")
      m.httpTask.observeField("response", "onResponseTask")
      m.httpTask.request = request 
      m.httpTask.control = "RUN" 
  end sub
  
  sub onResponseTask(event as Object)
      response = event.getData()
      m.rowlist.content = response.data
      m.httpTask.control = "STOP"
      m.httpTask = invalid
  
      m.rowlist.observeField("rowItemSelected","onItemSelected")
      m.rowlist.observeField("rowItemFocused","onItemFocused")
  end sub
  
  sub onItemSelected(event as Object)
      rowItemIndex = event.getData()
      rowContent = m.rowlist.content.getChild(rowItemIndex[0])
      itemContent = rowContent.getChild(rowItemIndex[1])
  end sub
  
  sub onItemFocused(event as Object)
      rowItemIndex = event.getData()
      'rowContent = m.rowlist.content.getChild(rowItemIndex[0])
      'itemContent = rowContent.getChild(rowItemIndex[1])
      ?m.rowlist.currFocusRow
  end sub