I’m trying to read the JSON data of the workflow summary extractor node with a python labs node.
In the regular python script node I can read this data as a String and load the dictionary fairly painlessly.
However with the labs node this data is of type Bytes and I’m not able to decode it:
I tried to find the source code for this node - org.knime.features.python3.scripting.feature.group, but I wasn’t able to find this.
In what format is this object encoded? Or where is the source code for this node.
@azsb1g19 maybe you could provide us with a sample workflow that would reproduce the error.
data = data.decode(“ISO-8859-1”)
You can see my attempt below:
If I cut the first character, I get something that looks like a JSON but it will not load:
Cutting the second character does not let it load as a JSON either. When I compared the log dump of the Labs node to the regular one, they seemed the same to me.
That’s strange. I ran it with decoding (without slicing) and it worked fine for me
I’ll try on a different workflow tomorrow and report back
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.