title: Read JSON array without curly brackets
body: <p>I'm trying to get the values from array in a JSON file. Array only has a square brackets and not curly brackets something like this: 
  "{"name_of_the_array: ["value_1", "value_2"]"}"</p>
  
  <p>I found here some answer but it did not work for me the code of the answer is:           </p>
  
  <pre><code>JSONArray array = new JSONArray("array_name");
  
          for (int i = 0; i &lt; array.length(); i++) {
  
              str = array.get(i).toString();
              list.add(str);
          }
  </code></pre>
  
  <p>the list is ArrayList list.</p>