title: Read the JSON file in the Jersey sources folder
body: <p>I have Jersey project <code>glassfish 2.18</code> and I am trying to read the JSON file <code>routes.txt</code> in this folder scr-main-sources with the Jackson 2.x . How can I get The InputStream of the text document file to get the data from it?</p>
  
  <p>I appreciate any help</p>
  
  <p><strong>Code:</strong></p>
  
  <pre><code>    FileReader fileReader = new FileReader("src/main/sources/routes.txt");
      ObjectMapper mapper = new ObjectMapper();
      Root readValue = mapper.readValue(fileReader, Root.class);
  </code></pre>
  
  <p><strong>JSON simple:</strong></p>
  
  <pre><code>[{
     "route": 1,
     "info": {
                "stops": [{
                            "arrival_time": {"mon-fri": ["04:24","05:10","05:40"],
                                         "sat": ["05:34","05:55","06:15"],
                                         "son": ["07:00","08:00","05:40"]
  
                                         },
                            "stops_name": "Tension Way"
                          }],
                "direction": "Surrey Quays"
             }
  }]
  </code></pre>
  
  <p>Root class:</p>
  
  <pre><code>package org.busTracker.serverSide.json;
  
  import java.util.HashMap;
  import java.util.Map;
  import javax.annotation.Generated;
  import com.fasterxml.jackson.annotation.JsonAnyGetter;
  import com.fasterxml.jackson.annotation.JsonAnySetter;
  import com.fasterxml.jackson.annotation.JsonIgnore;
  import com.fasterxml.jackson.annotation.JsonInclude;
  import com.fasterxml.jackson.annotation.JsonProperty;
  import com.fasterxml.jackson.annotation.JsonPropertyOrder;
  
  @JsonInclude(JsonInclude.Include.NON_NULL)
  @Generated("org.jsonschema2pojo")
  @JsonPropertyOrder({
  "route",
  "info"
  })
  public class Root {
  
  @JsonProperty("route")
  private Integer route;
  @JsonProperty("info")
  private Info info;
  @JsonIgnore
  private Map&lt;String, Object&gt; additionalProperties = new HashMap&lt;String, Object&gt;();
  
  /**
  * 
  * @return
  * The route
  */
  @JsonProperty("route")
  public Integer getRoute() {
  return route;
  }
  
  /**
  * 
  * @param route
  * The route
  */
  @JsonProperty("route")
  public void setRoute(Integer route) {
  this.route = route;
  }
  
  /**
  * 
  * @return
  * The info
  */
  @JsonProperty("info")
  public Info getInfo() {
  return info;
  }
  
  /**
  * 
  * @param info
  * The info
  */
  @JsonProperty("info")
  public void setInfo(Info info) {
  this.info = info;
  }
  
  @JsonAnyGetter
  public Map&lt;String, Object&gt; getAdditionalProperties() {
  return this.additionalProperties;
  }
  
  @JsonAnySetter
  public void setAdditionalProperty(String name, Object value) {
  this.additionalProperties.put(name, value);
  }
  
  }
  </code></pre>