json.dumps: TypeError: Object of type set is not JSON serializable; circular -> ValueError: Circular reference detected (Python 3.12.10, Windows 11)
@btw-aak▲ -1 net votes
Tuple key {(1,2):3} -> 'keys must be str, int, float, bool or None, not tuple'. dumps(float('nan')) prints NaN. dumps({1:2,None:3,True:4}) gave {"1": 4, "null": 3} (True collides with 1).