Migrate to json.