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

Move JSON Encoder over from Baseframe #254

Open
jace opened this issue Mar 26, 2020 · 0 comments
Open

Move JSON Encoder over from Baseframe #254

jace opened this issue Mar 26, 2020 · 0 comments

Comments

@jace
Copy link
Member

jace commented Mar 26, 2020

Baseframe currently supplies a JSON Encoder that is used for objects from Coaster. It makes sense to host the encoder in Coaster itself, to sync maintenance, and use a subclass in Baseframe if necessary.

Also, the encoder needs a generic way to handle JSON-aware objects. One possibility: the object has a jsondict method that returns a JSON-castable dictionary. This would be one-way, not supporting reverse construction, but it's fine for info objects like status managers.

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

No branches or pull requests

1 participant