I am getting json response from SOLR via PySolr , everything works fine, just that Facet fields are coming in inconsistent format , below is the facet fields
LocalityId = [ "14008",1,"14293",4,]
Now I need to convert the above list into Key-Value pair (Dictionary), likewise
LocalityId = {"14008":"1", "14293":"4"}
How to achieve this with python ?
Edit : Yes I know its not standard list format , but I didnt created it , blame solr
Edit : Why -1 , stackoverflow has become a place for revenge and random outburst! tell me here folk where I am wrong ??