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: 
cpjamloki
Visitor

print complete array as it is

Hi guys,
is there any function in Roku like print_r in php, for printing complete arrray.


Thanks
0 Kudos
2 REPLIES 2
cpjamloki
Visitor

Re: print complete array as it is

if anybody have any idea please share.
0 Kudos
EnTerr
Roku Guru

Re: print complete array as it is

If print is given an array, it does already print it "complete", one item per line.

I suspect you are asking about way to recursively dump a structure, it's trivial to write such function - but take a look first, won't formatJSON() do out-of-the-box what you need?
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.