title: org.glassfish.json.JsonStringImpl cannot be cast to javax.json.JsonArray
body: <p>I have this piece of code:</p>
  
  <pre><code>JsonObject fg = null;
  try{
        fg =  message.getJson();  //gettng the JSON object from the client
        System.out.println("JSONGOBJECT IS HERE:   "+fg);
  
        JsonArray arr1 =  fg.getJsonArray("to");  //I get the exception here
        int size =  arr1.length();
        arrays = new ArrayList&lt;String&gt;();
        for(Object o : arr1)
        {
          String user=(o == null ? null : o.toString());
             if (user != null) {
                   arrays.add(user);
             }
         }
         catch(Exception e)
         {
             System.out.println("Exeption HERE: "+e);
         }
  </code></pre>
  
  <p>I get this exception while I try to access value for "to" parameter from <code>JsonArray</code>. I am not using <code>org.glassfish.json</code> library anywhere. Have not imported it either. </p>
  
  <p>I have imported only <code>javax.json</code>  in my current code. How do I fix this ?</p>