Uploaded image for project: 'Automation for Cloud'
  1. Automation for Cloud
  2. AUTO-748

Action: Send 'Web Request' - Improve documentation and Automation UI to mention that "content-type" should be "application/json" for dot notation to work

XMLWordPrintable

    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

    • Jira Software

      When sending a web request, if the server responds with content-type header different from  application/json, the JSON parser won't consider it as a JSON object, hence dot notation won't work.

       

      E.g:
      This will return empty for webResponse.body.name

      vs:
      This will work:

       

      Workaround

      1. Change the server's header content-type to application/json
      2. Use regex to get the data from webResponse.body

              kbui Kevin Bui
              ezhapa Enida (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: