In python I have a dictionary that maps tuples to a list of tuples. e.g.
{(1,2): [(2,3),(1,7)]}
I want to be able to encode this data use it with j
You can't use an array as a key in JSON. The best you can do is encode it. Sorry, but there's really no other sane way to do it.