title: JSONCPP Not reading files correctly
body: <p>So I recently installed JSONCPP and for some reason it gives me errors when I try this code:</p>
  
  <pre><code>#include &lt;json.h&gt;
  #include &lt;iostream&gt;
  #include &lt;fstream&gt;
  
  int main(){
      bool alive = true;
      while (alive){
      Json::Value root;   // will contains the root value after parsing.
      Json::Reader reader;
      std::string test = "testis.json";
      bool parsingSuccessful = reader.parse( test, root, false );
      if ( !parsingSuccessful )
      {
          // report to the user the failure and their locations in the document.
          std::cout  &lt;&lt; reader.getFormatedErrorMessages()
                 &lt;&lt; "\n";
      }
  
      std::string encoding = root.get("encoding", "UTF-8" ).asString();
      std::cout &lt;&lt; encoding &lt;&lt; "\n";
      alive = false;
  
  
      }
      return 0;
  }
  </code></pre>
  
  <p>And here is the file:</p>
  
  <pre><code>{
  "encoding" : "lab"
  }
  </code></pre>
  
  <p>It says that there is a syntax error on Line 1, Column 1, and that there must be a value, object or array. Anyone know how to fix this?</p>
  
  <p>EDIT: Changed to current code, from pastebin</p>