The latest version of safe-json is 1.2.0.2-0.

safe-json

Version 1.1.4.0 revision 3 uploaded by nideco.

Package meta

Synopsis
Automatic JSON format versioning
Description

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

Author
Felix Paulusma
Bug reports
https://github.com/Vlix/safe-json/issues
Category
JSON
Copyright
2019 Felix Paulusma
Homepage
https://github.com/Vlix/safe-json#readme
Maintainer
felix.paulusma@gmail.com
Package URL
n/a
Stability
n/a

Components