title: How to get a json file from raw folder?
body: <p>I want to use my user.json which is in my raw folder to get a new File :</p>
  
  <pre><code>// read from file, convert it to user class
  User user = mapper.readValue(new File(**R.raw.user**), User.class);
  </code></pre>
  
  <p>I found that InputStream can do it :</p>
  
  <pre><code>InputStream ins = res.openRawResource(
                          getResources().getIdentifier("raw/user",
                                  "raw", getPackageName()));
  </code></pre>
  
  <p>Is there a better way to do it, directly with my json file ID ?</p>