TypeError: unhashable type: ‘dict’, when dict used as a key for another dict
From the error, I infer that referenceElement is a dictionary (see repro below). A dictionary cannot be hashed and therefore cannot be used as a key to another dictionary (or itself for that matter!). You probably meant either for element in referenceElement.keys() or for element in json[‘referenceElement’].keys(). With more context on what types json and referenceElement are and what they contain, we will be … Read more