Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
hugetv
Visitor

help this json

hi all is that I have a json with this content
{"live":{"titulo":"Beetlejuice","inicio":"12:40PM","final":"2:15PM","avance":1,"hora_actual":"07:03pm"},"next":{"titulo":"The Fight Game With Jim Lampley","inicio":"2:15PM","final":"2:45PM"}}


    jsonRequest = CreateObject("roUrlTransfer")
jsonRequest.SetURL("http://"+initConfig()+"/epg.php?ch="+m.ID)
json = ParseJson(jsonRequest.GetToString())

live = json.live
next = json.next ' linea 276


this error

Syntax Error. (compile error &h02) in pkg:/source/LTV/VideoPlayer.brs(276)
Syntax Error. (compile error &h02) in pkg:/source/TV/VideoPlayer.brs(341)
Syntax Error. (compile error &h02) in pkg:/source/TV/VideoPlayer.brs(342)
Syntax Error. (compile error &h02) in pkg:/source/TV/VideoPlayer.brs(343)
Syntax Error. (compile error &h02) in pkg:/source/TV/VideoPlayer.brs(344)
Our system http://www.rokumanager.com
0 Kudos
2 REPLIES 2
belltown
Roku Guru

Re: help this json

'next' is a reserved word in BrightScript. Use something like 'nextJson' instead.
0 Kudos
hugetv
Visitor

Re: help this json

OK thanks
Our system http://www.rokumanager.com
0 Kudos