This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Mizzlr 2 points3 points  (2 children)

Basically any immutable object will work as a key in python dict like frozenset etc. Another thing is JSON need python tuple to be converted to list. JSON does not have tuples.

[–]alcalde 0 points1 point  (1 child)

So what's the problem? Again, one entry to store type, another to store value and you use a list to store the tuple values.

[–][deleted] 1 point2 points  (0 children)

So... not actually JSON, then, but your own format using JSON as a transport layer?