I have a dictionary of set elements like below, that is "a" is a set of c and e. How can I convert it into a json object?
my_data = { "a" : {"c", "e"},
"b" : {"c", "e"},
"c" : {"a", "b", "d", "e"},
"d" : {"c"},
"e" : {"c", "b"},
"f" : {},
"g" : {"a", "s"}
}
json.dumps will give the following error,
TypeError: Object of type set is not JSON serializable
Thank you in advance.