Override to provide transformation of the old JSON structure to the new JSON structure.
Override to provide transformation of the old JSON structure to the new JSON structure.
the version of the old data
the old JSON data
Override this method if you have changed the class name.
Override this method if you have changed the class name. Return current class name.
Data migration of old formats to current format can be implemented in a concrete subclass or provided through the factories in JsonMigrations and configured to be used by the
PlayJsonSerializer
for a changed class.It is used when deserializing data of older version than the currentVersion. You implement the transformation of the JSON structure in the transform method. If you have changed the class name you should override transformClassName and return current class name.