I used the enrich mediator to add a payload containing the name and totalnote of students my problem that i want to replace the values with the property
here is my code
<property expression="get-property('uri.var.nom')" name="uri.var.nom" scope="default" type="STRING"/>
<property expression="get-property('totalnote')" name="totalnote" scope="default" type="STRING"/>
<enrich>
<source clone="true" type="inline">
{"nom":"" ,
"note":""}
</source>
<target action="child" xpath="json-eval($)"/>
</enrich>
<enrich>
<source clone="true" property="uri.var.nom" type="property"/>
<target action="replace" xpath="json-eval($.etudiants.nom)"/>
</enrich>
<enrich>
<source clone="true" property="totalnote" type="property"/>
<target action="replace" xpath="json-eval($.etudiants.note)"/>
</enrich>
<respond/>
it doesn't work I always receive empty
{ "etudiants": { "nom": "", "note": "" }