I'm evaluating a JSON string that is stored on the client side (in a
hidden field).
I use this string just as a search filter, so I think eval is OK in
this scenario too.
But, as I've been using jQuery a lot recently, I thought I could
leverage some JSON parsing in my code.
Thanks weepy, good hint.

On Nov 10, 3:40 pm, weepy <[EMAIL PROTECTED]> wrote:
> User :http://code.google.com/p/jquery-json/
>
> On 10 Nov, 17:19, Mike Alsup <[EMAIL PROTECTED]> wrote:
>
> > > Is there a problem with using the eval function?
>
> > > I'm curious why you would need an alternative that would add overhead.
>
> > Security is the main problem.  If you trust the source completely then
> > eval is fine.  Parser's like Doug's json2 also let you pass in a
> > replacement function so you can massage the data as it's parsed if you
> > need to.

Reply via email to