Parsing JSON in BrightScript Language for Roku


This is an example application for Roku box which parses JSON response from a url e.g. http://example.com/index.php. For this application, the output is seen only on debugger console of Roku box. So to open debugger console telnet to your Roku box at port  8085 i.e. telnet ip_of_your_roku 8085.
Sample JSON response from the url used in this example is as follows:

[ {
     "ch_id": "1",
     "ch_title": "CHANNEL 1",
     "ch_logo": "channel1.png",     "stream": "channel1.stream",     "server": "54.234.181.51"
}, {     "ch_id": "2",     "ch_title": "CHANNEL 2",
    "ch_logo": "channel2.png",
    "stream": "channel2.stream",     "server": "54.234.181.51"
}, {     "ch_id": "3",     "ch_title": "CHANNEL 3",     "ch_logo": "channel3.png",
    "stream": "channel3.stream",    "server": "54.234.181.51"
}]

Comments

Popular posts from this blog

Automate file upload in Selenium IDE

How To Install and Configure Nextcloud