title: Reading in JSON files using Eclipse, do I need a library or not
body: <p>I need to read a JSON file input from a file into my Java program. 
  I found some code that is reasonable to use which I have an example below. 
  But I am using Eclipse and I getting errors trying to reference JSONObject.
  So apparently I do not have a library intalled in eclipse. So I was wondering what is the easiest way to get this to work. Do I need whole big library installed or  is there another way without. If I do need to install a library which is the best/easiest and could you point to a link for download.</p>
  
  <p>Thanks!!</p>
  
  <pre><code>        String jsonData = "";
      BufferedReader br = null;
      try {
          String line;
          br = new BufferedReader(new FileReader(pathname));
          while ((line = br.readLine()) != null) {
              jsonData += line + "\n";
          }
      } catch (IOException e) {
          e.printStackTrace();
      } finally {
          try {
              if (br != null)
                  br.close();
          } catch (IOException ex) {
              ex.printStackTrace();
          }
      }
      // System.out.println("File Content: \n" + jsonData);
      JSONObject obj = new JSONObject(jsonData);
  </code></pre>