I need to deserialize a `json` object using [`Jackson`](https://www.google.co.il/search?safe=strict&ei=6qyVWr2YIY-QkwW-jLXABA&q=jackson%20java&oq=jackson%20java&gs_l=psy-ab.3..35i39k1j0l5j0i20i263k1j0l3.12597.13249.0.13496.5.5.0.0.0.0.154.512.0j4.4.0....0...1c.1.64.psy-ab..1.4.509...0i67k1.0.LV-SJnkU6mA).  

After several efforts and internet search, all effort to resolve the error:

```
Exception in thread "main" com.fasterxml.jackson.core.io.JsonEOFException: Unexpected end-of-input: expected close marker for Object (start marker at [Source: {; line: 1, column: 1])
     at [Source: {; line: 1, column: 3]

```

have failed. 

I tried [JacksonMixInAnnotations](https://github.com/FasterXML/jackson-docs/wiki/JacksonMixInAnnotations) without success.

An example of the json is

```
{
    "imageDigest": "sha256:7cc1145883e4e6741fd4f02b8d01636ac341038de51e7923b9a5acf98329602a", 
    "vulnerabilities": [
        {
            "fix": "None", 
            "package": "apt-1.0.9.8.4", 
            "severity": "Negligible", 
            "url": "https://security-tracker.debian.org/tracker/CVE-2011-3374", 
            "vuln": "CVE-2011-3374"
        }
    ], 
    "vulnerability_type": "os"
}

```

**My deserialization code:**

```
String line = "";
    File file = new File ("C:\\xxxxxxx\\xxxxxx\\kbastani-movie-microservice04.json");
    Anchore anchore = new Anchore();
    ObjectMapper mapper = new ObjectMapper();
    BufferedReader breader = new BufferedReader(new FileReader(file));
    while((line= breader.readLine()) != null) {
    anchore = mapper.readValue(line, Anchore.class);
    System.out.println(anchore);
    List <Vulnerability> vulnerability = anchore.getVulnerabilities();
    System.out.println(vulnerability.get(1));

    }

    breader.close();

```

**Anchore class**

```
public class Anchore {
    @JsonProperty("imageDigest")
    private String imageDigest;
    @JsonProperty("vulnerabilities")
    private List<Vulnerability> vulnerabilities = null;
    @JsonProperty("vulnerability_type")
    private String vulnerabilityType;

    public Anchore() {
    }

     public Anchore(String imageDigest, List<Vulnerability> vulnerabilities, String vulnerabilityType) {
        super();
        this.imageDigest = imageDigest;
        this.vulnerabilities = vulnerabilities;
        this.vulnerabilityType = vulnerabilityType;
    }
}

```

**Vulnerability class**

```
@JsonIgnoreProperties(ignoreUnknown = true)
public class Vulnerability {

        @JsonProperty("fix")
        private String fix;
        @JsonProperty("package")
        private String imagePackage;
        @JsonProperty("severity")
        private String severity;
        @JsonProperty("url")
        private String url;
        @JsonProperty("vuln")
        private String vuln;

        public Vulnerability() {
        }
}

```