Hi friends Iam Hari learning roku examples with brightscript
my problem is how to get values from json when http request is made
can any one know please help me
Hi friends Iam Hari learning roku examples with brightscript
my problem is how to get values from json when http request is made
can any one know please help me
Have a look at librokudev, it has json builder and and parser functions in rdJSON.brs. The json functions depend on another function located in reSerialize.brs. It’s under a BSD License, so if you use it, you have to give acknowledgement somewhere in your documentation, but you don’t have to post your source anywhere if you don’t want to
I’m using the parser function in something I’ve been working on, my json is simple, and it works for my purposes. I haven’t tested it extensively with more complex json strings.
Also, questions like this will get more attention from developers if you ask them in the Developer Program area of the forum.
hai iam not getting json values from http request,
can u please send me sample code for getting json values from http request,
plzzzzzzzzz
The server would have to support returning data in JSON format. Usually there is a URL parameter that you can send or a header you can send to request the data in JSON or another format.
Currently, if the server supports XML format, you are better off using that, as the Roku will process XML natively, which is significantly faster than non-natively processing JSON
Nobody can help you here if they don’t know what type of server or what service you are connecting to, as there is no generic way to request data in JSON, it is on a case by case basis. If you check out ProgrammableWeb.com you can look up the types of data that various services can return.