title: java , each Json documents stored in a List of String for elastic search
body: <p>I am novice in java and I am using elasticsearch and I am looking a way to put Json's documents in a List string. The things is, I want to read a Json file  and then stored each Json's documents in a List String :</p>
  
  <p>Example: 
    readTheJsonfile = (src/main/resource/file.json)</p>
  
  <p>and then for example:</p>
  
  <p><pre> &lt;</p>
  
  <code>List &lt;String &gt; readTheJsonfile [1] = "{\n" +
                                  "    \"user\" : \"stack\",\n" +
                                  "    \"post_date\" : \"2009-11-15T14:12:12\",\n" +
                                  "    \"message\" : \"trying search\"\n" +
                                  "}"
  
  List &lt;String &gt; readTheJsonfile [2] = "{\n" +
                                  "    \"user\" : \"flow\",\n" +
                                  "    \"post_date\" : \"2009-11-15T14:12:12\",\n" +
                                  "    \"message\" : \"trying Ela\"\n" +
                                  "}"
  </code></pre>
  
  <p>></p>