javascript ant

RSS or Atom

 

Piles of javascript goodness
 

Google's own JSON.js Script

 

Recently Google released Caja. In doing so, they also revealed their own script for converting a JSON string to a JavaScript object. Choices are nice, so enjoy, courtesy of google! If you have no idea what I am talking about read on.

Due to certain security concerns, it's appropriate in most scenarios to convert a JSON string to an object without using just the eval method. If this is news to you, I suggest reading Douglas Crockford's article discussing this topic.


Comments:

on 01/06/2008 Tobie Langel said...

Hi,

The script you linked to uses eval to parse JSON. Is your comment related to some other script?

Best,

Tobie

on 01/08/2008 cody lindley said...

Tobie – I think its correct to say that both of the scripts use eval. However, the scripts were created and are used to avoid using eval alone.