Hi,

I am trying to resolve the ovms web interface throwing an "undefined" error because the following metric is defined with OvmsMetricVector<string> and does not get quoted when parsed to JSON.parse(ev.data) in ovms.js.

Output from console error log:
"xnl.v.c.duration.label":[full.l2,full.l1,full.l0,range.l2,range.l1,range.l0]

However, when using JSON.print(OvmsMetrics.GetValues("xnl.v.c.duration.label")) a properly formed json string is returned:
  "xnl.v.c.duration.label": [
    "full.l2",
    "full.l1",
    "full.l0",
    "range.l2",
    "range.l1",
    "range.l0"
  ]

Can this be corrected at the ev.data source or use JSON.print on ev.data before parsing it?

Kind regards
Derek