Skip to content

Conversation

@Thijss
Copy link
Member

@Thijss Thijss commented Jan 19, 2026

  • Add serialization support for Grid attributes that have a .to_dict() method.
  • Add deserialization support for Grid attributes that have a .from_dict() method.
  • Add custom error classes for clarity: JSONSerializationError, JSONDeserializationError

motivation: There does not seem to be a native (__dunder_method__) way for python to indicate something is json_(de)serializable

  • ToDo: add tests

Signed-off-by: Thijs Baaijen <13253091+Thijss@users.noreply.github.com>
Signed-off-by: Thijs Baaijen <13253091+Thijss@users.noreply.github.com>
@Thijss Thijss changed the title Support field values with a .to_dict() method Support (de)serialization for attributes with .to_dict() and from_dict() methods Jan 19, 2026
Signed-off-by: Thijs Baaijen <13253091+Thijss@users.noreply.github.com>
Signed-off-by: Thijs Baaijen <13253091+Thijss@users.noreply.github.com>
Signed-off-by: Thijs Baaijen <13253091+Thijss@users.noreply.github.com>
@Thijss Thijss added the do-not-merge This should not be merged label Jan 19, 2026
@Thijss Thijss marked this pull request as draft January 19, 2026 13:26
Signed-off-by: Thijs Baaijen <13253091+Thijss@users.noreply.github.com>
@sonarqubecloud
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

do-not-merge This should not be merged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants