[PATCH v4 01/10] migration: Improve json and formatting