Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

Re: JSON Formatted String

by sundialsvc4 (Abbot)
on Jan 12, 2011 at 14:51 UTC ( #881906=note: print w/replies, xml ) Need Help??

in reply to JSON Formatted String

What you do not want to do is to eval it, i.e. “just to see if it works.”   Many a website has been zapped by a maliciously-formed JSON string.

Replies are listed 'Best First'.
Re^2: JSON Formatted String
by Anonyrnous Monk (Hermit) on Jan 12, 2011 at 15:09 UTC
    Many a website has been zapped...

    Could you elaborate?  "Zapping" a web site would normally happen on the server, but how (or why) would you "eval" a JSON string server-side? As JSON is JavaScript, it can only be directly eval-ed by a JS interpreter. Sure you could run a JS interpreter server-side, but more typically, JS is used for client-side code, where eval-ing a malicious JSON string would unlikely have the effect of zapping the site... (at least it ought not be able to, as you can't really control what people do client-side anyway).

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://881906]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (5)
As of 2020-08-13 17:35 GMT
Find Nodes?
    Voting Booth?
    Which rocket would you take to Mars?

    Results (74 votes). Check out past polls.