I have a url that I am able to get data when I set the output to xml as an optional parameter in the url, but when I set it to json, I get NaN… the url is 'http://api.eia.gov/series/?api_key=####&series_id=NG.RNGC1.D&out=json' where #### is a private key. Any ideas? I am able to get a struct array when I use the World Bank Climate example in Matlab help documentation.
MATLAB: JSON vs. XML using webread()
jsonweb services
Best Answer