title: How to access json object from array
body: <p>In my code one of the promise returning the result like this</p>
  
  <pre><code>[{"success":true,"fileName":"./tmp/test.txt"}]
  </code></pre>
  
  <p>and I want to convert it into Json. how to convert it?
  output:-{"success":true,"fileName":"./tmp/test.txt"}</p>