I'm trying to read a json with pyjstat but it gives me an error:
KeyError: 'dimension'
This is the code:
from pyjstat import pyjstat
EXAMPLE_URL ='http://www.cso.ie/StatbankServices/StatbankServices.svc/jsonservice/responseinstance/AQA04'
query = [{'Type of Crop': 'Total wheat'}, {'Year': '2008'}, {'Statistic': 'AQA04C2'}]
dataset = pyjstat.Dataset.read(EXAMPLE_URL)
print(dataset.get_value(query))
I do not know much about the library, but from what I've seen it looks for a field ['dimension']['id']
but the json if it has it and I do not know why it gives an error ... Does anyone understand it?
Thanks