title: Play Java, How to read a local JSON file and show as list on a body?
body: <p>I am starting learning Play Java, and found many different samples (often without imports etc.) about how to do what explained on subject.
  I am using Play 2.5 and JDK 8, and configured my own controller. The file is in a directory that I can access from the controller Java class, but not clear to me what is the best practice to read the JSON file: through Jackson? or java.io.* functions?
  Is it possible to obtain a working minimal sample from an expert?
  I tried following this guide, but the code goes always in error (sample code does't neither have the final comma!):
  <a href="https://www.playframework.com/documentation/2.5.x/JavaJsonActions" rel="nofollow">https://www.playframework.com/documentation/2.5.x/JavaJsonActions</a></p>
  
  <p>Basically my json items.json is under ..workspace\play-java\app\data\items.json .</p>
  
  <p>The JSON file is something like this:
  [
    {
      "id": 10000000,
      "name": "name1",
      "starttime": "2015-06-18T06:26:56-07:00",
      "endtime": "2015-07-08T12:47:16-07:00"
    }, etc.
  ]</p>
  
  <p>and I guess that in the function to read the file I need to specify the path 'app/data/items.json' or 'data/items.json'</p>
  
  <p>Thanks in advance!</p>