tinypellets
tinypellets6mo ago

Setting Content-Type in return node

Hi, I'm trying to return JSON with the return node. The Content-Type header is text/plain. How do I return application/json as the Content-Type?
Solution:
Hi, you need to format the return value as valid JSON.
No description
Jump to solution
3 Replies
Solution
Luis
Luis6mo ago
Hi, you need to format the return value as valid JSON.
No description
Abrar
Abrar5mo ago
Thats cool and all but i still get the warning "The return type must be string"
No description
Gaurav Chadha
Gaurav Chadha5mo ago
It should not affect the workflow working and output.