title: Use and Convert Array into JSON
body: <p>I have this array</p>
  
  <pre><code>["123", "456", "789", "0"]
  </code></pre>
  
  <p>And I would like to build a JSON out of its values.</p>
  
  <p>Expected result is</p>
  
  <pre><code>    {
    "list": [
      {
        "code": 123
      },
      {
        "code": 456
      },
      {
        "code": 789
      },
      {
        "code": 0
      }
    ]
  }
  </code></pre>
  
  <p>How do I work this structure in javascript? Thank u for the help</p>