title: How to convert nested numbered list into JSON file using Python?
body: <p>Basically I need to convert this:</p>
  <pre><code>1
  1.1
  1.1.1
  1.1.2
  1.1.3
  1.2
  </code></pre>
  <p>into this:</p>
  <pre><code>{
      &quot;1&quot;: {
          &quot;1&quot;: {
              &quot;1&quot;: {},
              &quot;2&quot;: {},
              &quot;3&quot;: {}
          },
          &quot;2&quot;: {}
      }
  }
  </code></pre>
  <p>In context of this task dot is a special symbol which is used for hierarchy description only.</p>