-
Notifications
You must be signed in to change notification settings - Fork 626
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
Make JsonConfiguration itself @Serializable #832
Comments
Closing for the reason described in #877 (review) |
Its fine, my implementation was only adding 1 attribute :) But I would like to have the option changing the json behaviour with a config file, even with the new API. |
Note that current |
Not planned because it is still not possible to create |
What is your use-case and why do you need this feature?
I would like to store the JsonConfiguration itself in a Json file and read them at startup. This allows to use different behavior with a simple change in the config files.
eg having a prod configuration and a debug configuration, which use a less strict Json De-/Encoder or uses pretty print.
Of course, the JsonConfiguration for reading the json configs must be static defined and cannot be defined in the config file.
Describe the solution you'd like
Add @serializable to JsonConfiguration
Current workaorund:
Implement a custom serializer, which I did for my project
The text was updated successfully, but these errors were encountered: