Can someone tell me where I am going wrong with this class. It is not evaluating the raw string back to a JSON Type in Javascript and I am not entirely sure what I am doing wrong. When I run it through JS Lint it says that it is valid JSON.
Heres the Fiddle : http://jsfiddle.net/pGygM/1/
You have a few issues…
eval()to pass, wrap it in parenthesis soeval()doesn’t think it’s simply a block.$.parseJSON(), use that instead.alert()won’t help you debug the object as it will implicitly calltoString()on the object, returning'[object Object]'which isn’t too useful. Useconsole.log()instead.