Getting JSON as string from web service

I am using HTTP Request node to make a call to a web service. The service returns JSON data and there is a content-type header with value application/json; charset=utf-8, but I have to add a JSON node after to convert it from a string to an object. Shouldn't that happen on its own?

I can see two possible causes:

This web service also returns a header x-content-type-options with value no sniff

This web service is returning formatted JSON (ie: with tabs and returns).

Would this be expected behaviour for one of those cases?

The http request node by default returns a utf-8 string, There is a setting at bottom of the http request config to output a JSON object.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.