Migrate circuit JSON to a new format