Move custom fields to proper syntax, array of objects with key and value properties.