Convert array of objects to string
I am having a MongoDB aggregate result: { "healthDetails": [ { "problem": "Fever", "note": "normal" }, { "problem": "Allergy", "note": "critical" } ] } I need to convert the above array like this: { "healthDetails": "Fever – normal, Allergy – critical" } Need to remove square brackets and double quotes and concat the values by… Read More Convert array of objects to string