title: Converting text to JSON
body: <p>How would you recommend converting a text file to JSON format?</p>
  
  <p>I have a text file with about 500 bits of text in the following format:</p>
  
  <pre><code>[number in brackets or astriek]
  [line1]
  [line2]
  [line3]
  [space]
  .
  .
  .
  </code></pre>
  
  <p>I want to convert it to JSON, like so:</p>
  
  <pre><code>"page1": {
     "line1": "LINE1",
     "line2": "LINE2",
     "line3": "LINE3"
  },
  "page2": {
     "line1": "LINE1",
     "line2": "LINE2",
     "line3": "LINE3"
  }
  .
  .
  .
  </code></pre>
  
  <p>Ideas?</p>