What am I doing wrong here?
Result from task:
{‘sys_id’: ‘test123’, ‘number’: ‘123’}
Output:
{“pythonResultTest”: {}, “lastResult”: {}, “resultList”: [{}]}
Morpheus Version: v6.2.6
Thanks!
What am I doing wrong here?
Result from task:
{‘sys_id’: ‘test123’, ‘number’: ‘123’}
Output:
{“pythonResultTest”: {}, “lastResult”: {}, “resultList”: [{}]}
Morpheus Version: v6.2.6
Thanks!
The first task should be
json_string = {"sys_id": "test123", "number": "123"} print(json.dumps(json_string))
and second task to print the result should be
print(json.dumps(morpheus['results']['taskone']))
where taskone
is the code of the first task.
Thank you! json.dumps() is the key.