title: Java JSON/object to array
body: <p>I have a question about type casting. I have the following JSON String:</p>
  
  <pre><code>{"server":"clients","method":"whoIs","arguments":["hello"]}
  </code></pre>
  
  <p>I am parsing it to the following Map&lt;String, Object>.</p>
  
  <pre><code>{arguments=[hello], method=whoIs, server=clients}
  </code></pre>
  
  <p>It is now possible to do the following:</p>
  
  <pre><code>request.get("arguments");
  </code></pre>
  
  <p>This works fine. But I need to get the array that is stored in the arguments. How can I accomplish this? I tried (for example) the following:</p>
  
  <pre><code>System.out.println(request.get("arguments")[0]);
  </code></pre>
  
  <p>But of course this didn't work.. </p>
  
  <p>How would this be possible?</p>