title: How to split a group of sentence into json format?
body: <p>I'm having a hard time to split the sentence. This is an example of data</p>
  <blockquote>
  <ol>
  <li>Go to the dining room. Click on the cabinet to take the whisky bottle.</li>
  <li>Go to the kitchen. Click on the fridge. Jason gets a lemonade.</li>
  </ol>
  </blockquote>
  <p>The result that I want it to be in JSON format.</p>
  <pre><code>{id: &quot;1&quot;, text: &quot;Go to the dining room. Click on the cabinet to take the whisky bottle.&quot;},
  {id: &quot;2&quot;, text: &quot;Go to the kitchen. Click on the fridge. Jason gets a lemonade.&quot;}
  </code></pre>
  <p><strong>The problem</strong>
  I don't know how to detect strings and split them correctly or using regex. Because some of data have a number such as 50. in the middle of the sentence and make it wrong data to split. And the number can be up to 4 digits and follow by &quot;.&quot; make it harder to detect and split.</p>
  <p>Any help would be appreciated.</p>