Migrate data to JSON format