title: Can we convert a string to JSON Array using the json-simple-1.1.1.jar library?
body: <p>I want to convert a string into a JSON Array using the <code>json-simple-1.1.1.jar</code> library and came up with the following code,</p>
  
  <pre><code>import org.json.simple.*;
  
  
  public class RESTclient {
  
      public static void main(String[] args) {
  
          String output = "[{\"Symbol\":\"AMZN\",\"Name\":\"Amazon.com Inc\",\"Exchange\":\"NASDAQ\"},{\"Symbol\":\"VXAZN\",\"Name\":\"CBOE Amazon VIX Index\",\"Exchange\":\"Market Data Express\"}]";
  
          JSONObject jsonObject = new JSONObject(output);
  
          String[] names = JSONObject.getNames(jsonObject);
  
          JSONArray jsonArray = jsonObject.toJSONArray(new JSONArray(names));
  
          System.out.println(jsonArray);
      }
  
  }
  </code></pre>
  
  <p>I want the output to be a JSON Array. What am I doing wrong here?</p>