best way to encode tuples with json,"{(1): {(2): [(2, 3), (1, 7)]}}"