I have a .json file in MarkLogic as :
{
"contextProductIdCDM": {
"variables": {
"source": "'Inm'",
"source_table_id": "'123'",
"Referdate": "normalize-space(string-join((J_MCCC, if(J_MCDC eq '') then '000' else J_MCDC),''))"
},
"$ref": "#/contexts/Closure"
},
"predcondition": "xyz=1"
}
I want to delete the predcondition and also want to delete some part of referdata also using xquery. Can anyone help how to achieve that?