Skip to content

Added from_json() function and also added option to add identifier in… - #244

Merged
liamlundy merged 3 commits into
caesar0301:masterfrom
cmoliverio:optional_identifier_and_from_json
Jul 23, 2026
Merged

Added from_json() function and also added option to add identifier in…#244
liamlundy merged 3 commits into
caesar0301:masterfrom
cmoliverio:optional_identifier_and_from_json

Conversation

@cmoliverio

@cmoliverio cmoliverio commented Jul 1, 2026

Copy link
Copy Markdown

Solves backwards compatibility issue in #239 by making the identifier and option in the to_dict() and to_json() functions. Also, added the class method from_json().

@liamlundy I didn't write any tests for this specifically for this, but it shouldn't be necessary since this is an optional feature. Let me know if you want tests though, and if you want more tests for to_dict() and to_json().

@cmoliverio
cmoliverio requested a review from liamlundy as a code owner July 1, 2026 17:23
@cmoliverio
cmoliverio force-pushed the optional_identifier_and_from_json branch from 06e0ca4 to 700d9d7 Compare July 1, 2026 17:26
@cmoliverio

Copy link
Copy Markdown
Author

Can this get merged?

@cmoliverio
cmoliverio force-pushed the optional_identifier_and_from_json branch from afc6032 to 38de0e9 Compare July 8, 2026 22:50
@cmoliverio

Copy link
Copy Markdown
Author

@liamlundy Tests from @dgercho incorporated. Done.

@cmoliverio

Copy link
Copy Markdown
Author

@caesar0301 Can you merge this pls?

@liamlundy
liamlundy merged commit 48f30cb into caesar0301:master Jul 23, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants