Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

request: include common interface to allow us to indicate object supports toJson #1376

Open
tylandercasper opened this issue Nov 18, 2023 · 0 comments

Comments

@tylandercasper
Copy link

I have a lot of different projects that need to know (or require) if an object is serializable to json. I've got an Iserializable interface, but as the projects grow and especially as I'm starting to try to seperate some of them into publishable packages, the question of where to put the interface is getting more and more convoluted.

At this point, I'm probably just going to make a to_json_interface package that does nothing but provide that one interface.

It would be great if json_serializable_annotation already included something like this as I'm sure other packages would like the ability to know this as well.

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

No branches or pull requests

1 participant