Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^2: Handling special characters in JSON

by mcm1303 (Initiate)
on Dec 15, 2010 at 21:55 UTC ( [id://877390]=note: print w/replies, xml ) Need Help??


in reply to Re: Handling special characters in JSON
in thread Handling special characters in JSON

Thanks sundials. I've become accustomed to using plain old eval() but I'll try your suggestion. In addition to hopefully solving my problem client-side solutions that go beyond eval() will no doubt be more secure because malicious code can be embedded in JSON.
  • Comment on Re^2: Handling special characters in JSON

Replies are listed 'Best First'.
Re^3: Handling special characters in JSON
by sundialsvc4 (Abbot) on Dec 15, 2010 at 22:09 UTC

    Yes, “simple eval()” is Not A Good Thing ... and “Doing It Yourself” is Definitely Not.

    I have read plenty of documents, for ExtJS and Prototype and several other JavaScript platforms, which describe all the whys and wherefores of what they actually do (and, over time, continue to have to do...), just to make it work at all.   And I come away saying, “Good Grief!   Better You Than Me!”   When I read stuff that says, “Internet Explorer 7 Service-Pack 2 does it this way, but Service-Pack 3 does it that way” ... why, it made me want to switch religions.   ;-)

    It really is a testament to how good these folks are, that not only does it work “at all,” but it actually works well.   Just be sure to do exactly what they tell you to do.   These are well-traveled waters... full of now-familiar rocks.   “Where the well-worn chart tells you to turn left ... turn left, (pray,) and don’t ask questions.”   :-D

    Some JS frameworks are very lean-and-mean.   Others are, “it slices, it dices, it even makes Julienne fries... on sale today!”   But I guess that comes with the territory.   (And who knows, maybe you want to make Julienne fries!)   There are also Perl frameworks and JS frameworks that have been crafted to work well together, with fairly high-level support on the Perl side for doing complicated things on the JS side.   Lotsa things to think about, mebbe.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (7)
As of 2024-04-23 16:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found