diff --git a/antarest/study/business/binding_constraint_management.py b/antarest/study/business/binding_constraint_management.py index 3c55ef38da..95dfd305c2 100644 --- a/antarest/study/business/binding_constraint_management.py +++ b/antarest/study/business/binding_constraint_management.py @@ -12,7 +12,6 @@ import collections import copy -import json import logging import typing as t @@ -854,7 +853,7 @@ def update_binding_constraints( raise BindingConstraintNotFound(f"Binding constraint '{bc_id}' not found") props = create_binding_constraint_config(study_version, **value.dict()) - new_values = json.loads(props.json(by_alias=True, exclude_unset=True)) + new_values = props.model_dump(mode='json', by_alias=True, exclude_unset=True) upd_obj = config[dict_config[bc_id]] current_value = copy.deepcopy(upd_obj) upd_obj.update(new_values)