This change adds support for returning the actual string as it is returned by NiFi when the return type is set to str.
This fixes the exportTemplate, exportFlowVersion and exportProcessGroup API's and probably some others.
The current implementation would json.loads() the reply to a dict, and then convert that dict to a str by using str(). This doesn't generate a valid JSON however, since it will be the Python representation of a dict.
This change adds support for returning the actual string as it is returned by NiFi when the return type is set to
str
.This fixes the
exportTemplate
,exportFlowVersion
andexportProcessGroup
API's and probably some others.The current implementation would
json.loads()
the reply to adict
, and then convert that dict to astr
by usingstr()
. This doesn't generate a valid JSON however, since it will be the Python representation of a dict.Actual returned JSON:
Returned JSON after (wrongful) deserialisation:
Fixes #354