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: 
sj_dev
Binge Watcher

What is the best approach to parse the json object and pass it to the UI ?

Hey

 

New to the Roku Development. We have common UI, we want to feed the UI with the response coming from the server. What is the best approach to do the same? 

 

Also the json which is received from the server is different for different scenario.

eg Response 1 {"movieName": "Spiderman", "releaseYear" : "2017"}

Response 2 {"showName": "GOT", "airingDate": "2011"}

Response 3 {"personName": "Brad Pitt", "dob": "1976"}

 

Please let me know the best practice to do the same.

 

0 Kudos
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.