title: Convert text to json using JsonPath
body: <p>I am given a csv file with lots of text and corresponding JsonPath notations .
  Example :</p>
  
  <pre><code>Alfa,$.patients[1].name,String   
  id-123,$.patients[1].id,String    
  severe,$.patients[1].condition,String  
  Beta,$.patients[2].name,String  
  id-321,$.patients[2].id,String  
  normal,$.patients[2].condition,String  
  </code></pre>
  
  <p>I need to convert from text to Json object in Java .Can anyone suggest an algorithm or any existing library for this .</p>