-
Notifications
You must be signed in to change notification settings - Fork 10
Description
Hello, would you like to know if it would be possible to add a way to serialize a dictionary please?
Because when I make this code, it works.
st = Story([Action(Chapter("Chapitre 1"), "Discussion", "Contenu"), Action(Chapter("Chapitre 1"), "Discussion", "Contenu")]) print(pykson.Pykson().to_json(st))
But when I want to implement my DAG, I cannot.
graph = { Action(Chapter("Chapitre 1"), "Discussion", "Contenu"): [Action(Chapter("Chapitre 1"), "Discussion", "Contenu")], Action(Chapter("Chapitre 1"), "Discussion", "Contenu"): [Action(Chapter("Chapitre 1"), "Discussion", "Contenu"), Action(Chapter("Chapitre 1"), "Discussion", "Contenu")], Action(Chapter("Chapitre 1"), "Discussion", "Contenu"): [Action(Chapter("Chapitre 1"), "Discussion", "Contenu"), Action(Chapter("Chapitre 1"), "Discussion", "Contenu")], Action(Chapter("Chapitre 1"), "Discussion", "Contenu"): [Action(Chapter("Chapitre 1"), "Discussion", "Contenu")]} print(pykson.Pykson().to_json(graph))
Looking forward to hearing from you, thanks !