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?