I want to insert node in a JSON document like this:
{ "fileName": "l", "user_id": "test", "requestId": "1232", "feedbackType": "cpd_mah" }
Running this code:
let $old := $doc/filename
return
xdmp:node-insert-after($old, object-node{"isSaved": ""})
but this is throwing an error XDMP-CHILDUNNAMED.