When I try to test some JSON in the python interpreter I get the error. I'm not sure why.
Traceback (most recent call last):
File "<stdin>", line 6, in <module>
TypeError: unhashable type: 'dict'
JSON: (doesn't work)
b = {
'data':{
'child':{
{'kid1':'one'},
{'kid2':'two'},
{'kid3':'three'}
},
'child':{
{'kid4':'four'},
{'kid5':'five'},
{'kid6':'six'}
}
}
}
JSON: (works)
a = {
"slate" : {
"id" : {
"type" : "integer"
},
"name" : {
"type" : "string"
},
"code" : {
"type" : "integer",
"fk" : "banned.id"
}
},
"banned" : {
"id" : {
"type" : "integer"
},
"domain" : {
"type" : "string"
}
}
}