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
My recommendation would be:
{ "1": [ { "2": [[2,3],[1,7]] } ] }
It's still parsing, but depending on how you use it, it may be easier in this form.