-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
支持使用 json 保存与读取 PluginData
与 PluginConfig
#2498
Conversation
不错的想法 但是有没有试过在 map 里用 |
确实, json 不支持在 Map 中使用 |
不会有什么影响, 就是需要在文档说明, 试试 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
实现其实不太可扩展, 但感觉 PluginData
整个设计就很烂, 也不太好改...
* Supports PluginData store with json format. * Reformat code.
由于 console 保存
PluginData
与PluginConfig
使用的yamlkt
对于多态的支持不够充足,而kotlinx.serialization
提供的 json 序列化相比更稳定且支持更多功能,所以在此添加对 json 格式储存数据的支持,以更加方便稳定地储存多态类数据。