title: Swap key with value in object
body: <p>I have an extremely large JSON object structured like this:  </p>
  
  <pre><code>{A : 1, B : 2, C : 3, D : 4}
  </code></pre>
  
  <p>I need a function that can swap the values with keys in my object and I don't know how to do it. I would need an output like this:</p>
  
  <pre><code>{1 : A, 2 : B, 3 : C, 4 : D}
  </code></pre>
  
  <p>Is there any way that I can do this would manually created a new object where everything is swapped?<br>
  Thanks</p>