EJS.update with json URL, eval throws a parse error

114 views
Skip to first unread message

Bradley

unread,
Jun 11, 2010, 2:04:13 PM6/11/10
to Embedded JavaScript
I can't EJS.update working with a url to a json stream. The eval of
the returned json throws a parse error. I've never used eval before
so I don't really know how it parses json, but from what I understand
it's a bit dangerous to do so.

Has anyone used update with a url and had it work? I've subbed (for
now) the eval with jquery's implementation of a json parser. Any
thoughts on this? Is there any plan for using a more robust json
parser rather than straight up eval?

Brad
Reply all
Reply to author
Forward
0 new messages