I am using a document memory tag to store some recipe information, and there is a “bug” right now with that tag type that requires you to cast the value to a string, and then jsonDecode it to use it as a dictionary.
json = system.util.jsonDecode(str(system.tag.readBlocking([tagPath]).value))
But somewhere along the way the keys in the dictionaries are made into unicode, instead of strings, so you have the
u' appended to the beggining of each key.
Is there an easy way to convert all of them to regular strings? I know I can do a
.replace("u'", "'") on it while its a string, but that is not necessarily a very clean solution.