You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi.
In the JSON standard; only string keys are allowed. you can't use other things like a JSON object as a key, even though it is possible as a value (obviously).
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 !
The text was updated successfully, but these errors were encountered: