I need to modify my JSON. I want to remove "
before [
and ]
Current Request :
{"marital-status":"Single","hospitalisation":"["hello", "world"]","ill-health":false,"specialist-condidtions":"["HEADACHE", "PANIC ATTACK"]","smoker":false,"health-concerns":false}
Modified request :
{"marital-status":"Single","hospitalisation":["hello", "world"],"ill-health":false,"specialist-condidtions":["HEADACHE", "PANIC ATTACK"],"smoker":false,"health-concerns":false}
I tried using the translate function fn:translate(req,'"[','[')
but this replaced all my "
as well as [
.