title: Error Unexpected Char javax.json
body: <p>I am trying to read this JSON code</p>
  
  <pre><code>{
    "metadata": {
      "clientTransactionId": "",
      "serverTransactionId": "20160621101521362-domainrobot-demo.routing-18997-0"
    },
    "responses": [
      {
        "domainName": "test.la",
        "domainNameUnicode": "test.la",
        "domainSuffix": "la",
        "earlyAccessStart": null,
        "extension": "la",
        "generalAvailabilityStart": "2000-01-01T00:00:00Z",
        "landrushStart": null,
        "launchPhase": "generalAvailability",
        "registrarTag": null,
        "status": "registered",
        "sunriseStart": null,
        "transferMethod": "authInfo"
      }
    ],
    "status": "success",
    "warnings": []
  }
  </code></pre>
  
  <p>With my Java Program:</p>
  
  <pre><code>import javax.json.*;
  import java.nio.charset.*;
  import java.nio.file.Files;
  import java.nio.file.Paths;
  import java.io.*;
  
  public class Main {
  
      public static String readFile(String path, Charset encoding) throws IOException 
      {
        byte[] encoded = Files.readAllBytes(Paths.get(path));
        return new String(encoded, encoding);
      }
  
      public static void main(String[] args) throws IOException {
          String jsonData = readFile("/home/maltepraktikant/workspace/DomainCreator/bin/JsonData.txt", StandardCharsets.UTF_8);
          JsonReader jsonreader = Json.createReader(new StringReader(jsonData));
          JsonObject object = jsonreader.readObject();
          System.out.println(object);
          jsonreader.close();
  
          }
  }
  </code></pre>
  
  <p>I have tried different things, but I haven't found a solution yet. It just gives me the error: </p>
  
  <pre><code>Exception in thread "main" javax.json.stream.JsonParsingException: Unexpected char 65.279 at (line no=1, column no=1, offset=0)
      at org.glassfish.json.JsonTokenizer.unexpectedChar(JsonTokenizer.java:532)
      at org.glassfish.json.JsonTokenizer.nextToken(JsonTokenizer.java:415)
      at org.glassfish.json.JsonParserImpl$NoneContext.getNextEvent(JsonParserImpl.java:222)
      at org.glassfish.json.JsonParserImpl$StateIterator.next(JsonParserImpl.java:172)
      at org.glassfish.json.JsonParserImpl.next(JsonParserImpl.java:149)
      at org.glassfish.json.JsonReaderImpl.readObject(JsonReaderImpl.java:101)
      at Main.main(Main.java:19)
  </code></pre>
  
  <p>Has anyone some ideas?</p>