Hi and hope this question is not too basic for you guys.
I am stuck converting a string of values already pre-formatted into JSON
["DO:do000:OFF","DO:do001:OFF","DO:do002:OFF","DO:do003:OFF","DO:do004:OFF","DO:do005:OFF","DO:do006:ON","DO:do007:OFF","DI:di000:OFF","DI:di001:OFF","DI:di002:OFF","DI:di003:OFF","DI:di004:OFF","DI:di005:OFF","DI:di006:OFF","DI:di007:OFF","XX:ai000:","XX:ai001:","XX:ai002:","XX:ai003:","XX:ai004:","XX:ai005:","XX:ai006:","XX:ai007:","DV:vt000:ON","DV:vt001:OFF","DV:vt002:OFF","DV:vt003:OFF","DV:vt004:OFF","DV:vt005:OFF","DV:vt006:OFF","DV:vt007:OFF","DV:vt008:OFF","DV:vt009:OFF","DV:vt010:OFF","DV:vt011:OFF","DV:vt012:OFF","DV:vt013:OFF","DV:vt014:OFF","DV:vt015:OFF","DV:vt016:OFF","DV:vt017:OFF","DV:vt018:OFF","DV:vt019:OFF","DV:vt020:OFF","DV:vt021:OFF","DV:vt022:OFF","DV:vt023:OFF","DV:vt024:OFF","DV:vt025:OFF","DV:vt026:OFF","DV:vt027:OFF","DV:vt028:ON","DV:vt029:OFF","DV:vt030:OFF","DV:vt031:OFF","DONE"]
My desire outcome is a JSON like this:
{"do000":"OFF","do001":"OFF","do002":"OFF", etc.}
Any advise?
Thanks!