logo
首页技术栈工具库讨论
safe-json

safe-json

This library aims to make the updating of JSON formats or contents, while keeping backward compatibility, as painless as possible. The way this is achieved is through versioning and defined migration functions to migrate older (or newer) versions to the one used. The library mainly consists of two classes: SafeJSON a: Defines the version of a and if (and how) it is migratable. Migrate a: Defines the data type (MigrateFrom a) that can be migrated to a and how to migrate from that type. Using these two classes, JSON serialized data types will stay parsable, even after format changes. For a more in-depth explanation and examples, please see the README at https://github.com/Vlix/safe-json#readme
由 
bruceshi2021-01-13 收录
--
推荐
不推荐
更多信息
GitHub iconVlix/safe-json20
HACKAGE
carbal install safe-json
查看
标签
根据用户添加的标签生成
暂无标签