title: Java conversion from list to JSONL
body: <p>I'd like to convert a list of objects to JSONL where each object in the list will be a line in the json.</p>
  <p>e:g: Let's say I have a list of Person and I want to convert that list to a separate file in the JSONL format</p>
  <pre><code>List&lt;Person&gt; personList = Stream.of(
                  new Person(&quot;John&quot;, &quot;Peter&quot;, 34),
                  new Person(&quot;Nick&quot;, &quot;young&quot;, 75),
                  new Person(&quot;Jones&quot;, &quot;slater&quot;, 21 ),
                  new Person(&quot;Mike&quot;, &quot;hudson&quot;, 55))
                  .collect(Collectors.toList());
  </code></pre>
  <h3>Convert List of person to JSONL</h3>
  <pre><code>{&quot;firstName&quot; : &quot;Mike&quot;,&quot;lastName&quot; : &quot;harvey&quot;,&quot;age&quot; : 34}
  {&quot;firstName&quot; : &quot;Nick&quot;,&quot;lastName&quot; : &quot;young&quot;,&quot;age&quot; : 75}
  {&quot;firstName&quot; : &quot;Jack&quot;,&quot;lastName&quot; : &quot;slater&quot;,&quot;age&quot; : 21}
  {&quot;firstName&quot; : &quot;gary&quot;,&quot;lastName&quot; : &quot;hudson&quot;,&quot;age&quot; : 55}
  </code></pre>