title: How to destructure a JSON object containing two objects into an array?
body: <p><a href="https://i.stack.imgur.com/EyXH0.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/EyXH0.png" alt="Screenshot of console"></a></p>
  
  <p>I have a JSON object, color, that consists of two JSON objects. I need to transfer these two JSON objects to an array. How can I do that?</p>
  
  <p>i.e. {blue, purple} to [blue, purple]</p>