I'm querying elastic search and its returning some json that looks like this:
{u'count': 1, u'customer_id': u'AABBCC', u'count': u'20'... .. .. },{}...
What I would like to do convert this kibana response json into a list that only contains a dic or list of customer Ids and their counts so I can use it in some other pythonic task.
Result should look something like
[AABBCC:20, BBCCDD:n, ... ..]
I am currently using
from elasticsearch import Elasticsearch
In my code. I'm fairly knew to json, open to any suggestion thanks.