title: org.json.JSONException: A JSONArray text must start with '['
body: <p>I have the following json file:</p>
  
  <pre><code>[   { "1" : "b1.png"},
      { "2" : "bb1.png"},
      { "3" : "bbg1.png"}
  ]
  </code></pre>
  
  <p>and in the following line:</p>
  
  <pre><code>JSONArray array = new JSONArray(jsonFilePath);
  </code></pre>
  
  <p>I get the following exception:</p>
  
  <pre><code>org.json.JSONException: A JSONArray text must start with '[' at 1 [character 2 line 1]
      at org.json.JSONTokener.syntaxError(JSONTokener.java:433)
      at org.json.JSONArray.&lt;init&gt;(JSONArray.java:105)
      at org.json.JSONArray.&lt;init&gt;(JSONArray.java:144)
      at il.ac.technion.cs234311.dolphins.parse.ParseCardsTest.initialize(ParseCardsTest.java:23)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
      at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
      at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
      at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:24)
      at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
      at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
      at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
      at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:459)
      at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:675)
      at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382)
      at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192)
  </code></pre>
  
  <p>But it is start with '[' !!!</p>
  
  <p>Any ideas?
  Thanks a lot!</p>