Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Level 8

Write To Temp File

Hi All

I want to write my jsonstring to tmp file.

jsonData = ParseJSON(text)
print jsonData


it gives error when on 3rd line.PARSEJSON Unknown Identifier Error.When I am writing the same response in local file and read it only.It is working fine.What to do.Please help me.I need help urgently.
0 Kudos
4 Replies
Level 9

Re: Write To Temp File

Sounds like the same error you're having here: viewtopic.php?t=91192
which still suggests that there's a problem with your JSON string. Any chance you have unicode characters in there that could possibly be throwing off the parser?
My Channels: - Twitter: @TheEndlessDev
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)
0 Kudos
Level 8

Re: Write To Temp File

But I acould not be able to debug api issue.Can you please tell me where is my tmp file..How can I see that file contents .
0 Kudos
Level 21

Re: Write To Temp File

You read your tmp file into text, so
print text

0 Kudos
Level 8

Re: Write To Temp File

Thnaks guys.I solved it by replacing starting characters from jsonstring.
0 Kudos