title: How to convert Array into json object?
body: <p>Dynamically I am getting an <code>array</code>.</p>
  
  <p>For example we can consider this following <code>array</code>.</p>
  
  <pre><code>var sampleArray=[
          "logo",
          "Details",
          "titles"
      ];
  </code></pre>
  
  <p>But I want it something like this.</p>
  
  <pre><code>jsonObj={
  "poistion1":"logo",
  "poistion2":"Details",
  "poistion3":"titles"
  }
  </code></pre>