I want to parse the following JSON string in Javascript:
str = {
    "weather":[{
        "id":803,
        "main":"Clouds",
        "description":"broken clouds",
        "icon":"04d"
    }],
    "cod":200
}
I normally parse JSON strings like this:
var obj = JSON.parse(str);
alert(obj.weather.description);
But in this case it doesn't work for me. How do I have parse such JSON strings?
 
     
     
    