title: Filter ansible output parameter without double quotes
body: <p>I am trying to filter one parameter from the output but the value is in quotes. I need the value without quotes. I tried slicing and using some filters but it didn't work. Appreciate your help.</p>
  <p>Attaching the output below.</p>
  <pre><code>    [localhost] =&gt; {
      &quot;retunrn_item&quot;: {
      &quot;cache_control&quot;: &quot;private&quot;,
      &quot;changed&quot;: false,
      &quot;connection&quot;: &quot;close&quot;,
      &quot;content_length&quot;: &quot;48&quot;,
      &quot;content_type&quot;: &quot;application/json;charset=utf-8&quot;,
      &quot;cookies_string&quot;: &quot;JSESSIONID=1007F276D92C74C40F45D1016CF17B44&quot;,
      &quot;elapsed&quot;: 1,
      &quot;failed&quot;: false,
      &quot;json&quot;: {
          &quot;_type_&quot;: 3,
          &quot;clientId&quot;: 2,
          &quot;clientName&quot;: &quot;mydns&quot;
      },
      &quot;msg&quot;: &quot;OK (48 bytes)&quot;\
  </code></pre>
  <p>I am trying to filter the ClientID which has a value 2. But the value is in Quotes when i print using Debug or do a set_fact.</p>
  <pre><code> - debug: 
       msg: &quot;{{ return_item.json.clientID }}&quot;
  </code></pre>
  <p>this prints the below output:
  msg: &quot;2&quot;</p>
  <p>I have to pass this clientID in the next task. Please find below.</p>
  <pre><code>    name: blackout      uri:
      url: http:*******
      method: POST
      body_format: json
      headers:
        Authtoken: &quot;{{ login.json.token }}&quot;
        Accept: application/json
        Content-Type: application/json
      body:
        operationWindow:
          endDate: &quot;{{ operationWindow_enddate }}&quot;
          name: &quot;{{ operationWindow_name }}&quot;
          startDate: &quot;{{ operationWindow_startdate }}&quot;
          operations: &quot;[{{ operationWindow_opreations }}]&quot;
          dayTime:
          - startTime: &quot;{{ operationWindow_daytime_starttime }}&quot;
            endTime: &quot;{{ operationWindow_daytime_endtime }}&quot;
            dayOfWeek: &quot;[{{ operationWindow_daytime_dayofweek }}]&quot;
        entity:
          clientGroupId: &quot;{{ groupid_value }}&quot; #&quot;{{ entity_clientgroupid }}&quot;
          #clientId: &quot;{{ clientid2.json.clientId }}&quot; #&quot;{{ entity_clientid }}&quot;
          clientId: &quot;{{ clientid2.json.clientId }}&quot;
      validate_certs: false
    retries: 5
    delay: 6
  </code></pre>