As someone that did quite a bit of work on JSON encode/decode functions for the Roku, I can state it's quite a bit slower than XML procesing. This is due to it replying heavily on BrightScript processing instead of an underlying C/C++ library exposed through a component.
Depending on the size of the JSON, it may be fast enough for
you though, so feel free to take a look:
https://github.com/rokudev/librokudev/b ... rdJSON.brs (requires rdSerialize from the same project).
That implementation makes heavy use of regular expressions to normalize the JSON into something that can be parsed as native BrightScript, and then evals it. It's fairly quick by BrightScript standards, but still quite slow on large sets of data.
See
https://github.com/rokudev/librokudev for more information about the librokudev project itself, or search these forums.
-- GandK Labs
Check out Reversi! in the channel store!