title: how to convert a string[] to json
body: <p>I declared an array as below </p>
  
  <pre><code>String[] finalcodes = new String[50] ;
  </code></pre>
  
  <p>and assigning some values to it finally when I print finalcodes it results as below.</p>
  
  <pre><code>["aaa","bbb","ccc"]
  </code></pre>
  
  <p>but my requirement is to get it as a json object</p>
  
  <p>so please suggest me how to convert my string array to JSON Object.</p>