glow/glow1 — pull request #69 by cynthia (2013-02-20 08:13:39+00:00)
Title: decodeJson should use JSON.parse() when available

Currently, the decodeJSON() method in data.js does not use JSON.parse(), even when
available. This is possibly because at the point this library was written native parsing did
not exist, but now most modern browsers have support for it.

Using eval() triggers potentially leak-like behavior as it creates a new script context which
is kept around during the lifespan of the application. (for purposes of making it debuggable,
as one reason for this behavior) This change prevents this, which is crucial for memory
constrained platforms like TV/STB/BDPs.