Adding a case for invalid json in migration.