title: passing a value from didOpen sweetalert2 parameter to the .then
body: <p>I already have the didOpen parameter built and implemented a JSON object with values inside of it.</p>
  <p>The question is... How can I pass that JSON object to the then part of the Swal.fire({ }) .then arrow function</p>
  <pre><code>Swal.fire({
    html: ` HERE IS ALL THE ID's STUFF `,
    didOpen() {
      let itemPOST = {
        /* the json i trying to catch */ }
  
      // do bunch of stuff and save it into itemPOST
  
    } //==&gt;end of didOpen
  }).then(() =&gt; {
    //console log here for itemPOST
  })
  </code></pre>