https://slingdata.io logo
Hi, there is a problem extracting (with
# sling-help
m
Hi, there is a problem extracting (with processors) from api response headers fields that hold '-'. For example for next response: { "date": "Fri, 24 Oct 2025 14:06:02 GMT", "vary": "Origin, Accept-Encoding", "content-type": "application/json; charset=utf-8" } No problem to extract date or vary, but "content-type" return error: function error: "jmespath" - ~ could not get path to string: content-type SyntaxError: Unexpected token at the end of the expression: tNumber Of course its just example, I need to extract other import fields that starts with x-...
f
try this:
jmespath(response.headers, "\"content-type\"")
, fixed in docs too
m
Thanks, it works!