Json data contains date and time format Json data contains date and time format json json

Json data contains date and time format


You can't read property names with those special characters in them. They need to be quoted:

data.city.forecast["2012-09-10"]["06:00"].w

Here's a related question:

any string can be a property name ... some properties can only be accessed using the bracket syntax.


Use bracket notation:

data.city.forecast['2012-09-10']['06:00']


Try with :

data.city.forecast['2012-09-10']['06:00'].w

Another problem is $("#"). The selector seems to be wrong. Which element are you targeting ?