migrate format to json