title: How to store JSON data from a file into an array of strings
body: <p>I am working on Dynamic Web Project in Eclipse and using HTML 5 and Javascript as well. 
  I could manage to parse JSON file that is saved locally in my system though the code below: </p>
  
  <pre><code>$.getJSON( "/Users/Documents/workspace2/sample.json", function( data ) {
      var items = [];
      $.each( data, function( key, val ) {
          items.push( "&lt;li id='" + key + "'&gt;" + val + "&lt;/li&gt;" );
      });
      $( "&lt;ul/&gt;", {
          "class": "my-new-list",
          html: items.join( "" )
      }).appendTo( "body" );
  });
  </code></pre>
  
  <p>Let's suppose this is the JSON file: </p>
  
  <pre><code>{"resource":"A","literals":["B","C","D"]}
  </code></pre>
  
  <p>My question is: Is there any possibility to have an array of strings to store these elements that are inside the JSON file after parsing. I am quite new to jQuery and couldn't really manage to see these elements stored in an array of strings, for example. Could anyone help me with this issue please. </p>