This usually happens when the JSON is stored or read as a string instead of an array.
In Couchbase (N1QL), you can fix it by using JSON_PARSE() or by correcting the field type in your model.
I faced a similar thing while working on my site Tipos de Flores, where flower data (categories, lists) must stay as proper JSON arrays—otherwise the app treats them like plain text.
Once the data type is correct, Couchbase returns clean JSON instead of a string. 🌸