use pagination in the json serialization migration