[IGN-16202] Reading document tag with array of objects fails to convert to JSON

v8.3.3

I'm not sure what's happening here, but encoding this document tag to JSON yields a bizarre result:

Documents tags (and Vision document props) can hold arrays and primitive values in addition to objects. But anything other than a dictionary/map at the root confuses the document editor.

Created an internal ticket to address this. Sadly, there doesn't seem to be any good workarounds that I found either.

I don't have 8.3 handy but does this work?

doc_val = system.tag.readBlocking([tp])[0].value
py_obj = system.util.jsonDecode(str(doc_val))
final_json = system.util.jsonEncode(py_obj)