title: Create slice of integers from JSON array
body: <p>I'm trying to figure out how to create a slice I can more easily manipulate and use JUST the values from to later iterate over to make a number of API requests. The slice of integers are API IDs. I am successfully making a struct with custom types after making a GET to retrieve the JSON Array of IDs, but I now need to pull only the values from that JSON array and dump them into a slice without the key &quot;id&quot; (which will likely need to change over time in size).</p>
  <p>This is my JSON:</p>
  <pre><code>{
    &quot;data&quot;: [
      {
        &quot;id&quot;: 38926
      },
      {
        &quot;id&quot;: 38927
      }
    ],
    &quot;meta&quot;: {
      &quot;pagination&quot;: {
        &quot;total&quot;: 163795,
        &quot;current_page&quot;: 3,
        &quot;total_pages&quot;: 81898
      }
    }
  }
  </code></pre>
  <p>And I would like this from it:</p>
  <pre><code>{38926, 38927}
  </code></pre>