I am trying to parse a json string in Jquery but its returning me null
I am using simple jQuery.parseJSON
Here is what i have tried
$(document).ready(function () {
var obj = jQuery.parseJSON(jsonStr);
alert(obj);
});
but the alert says null Here is the fiddle with actual json http://jsfiddle.net/9kw99L2h/
parseJSONtakes a string.object['key']or dot-notationobject.keyjsonStr.hierarch.folder["@name"](yieldsRootin your example)