title: Custom format to JSON
body: <p><strong>How can i convert</strong> the following line(not sure what format is this) <strong>to JSON format?</strong></p>
  
  <pre><code>[root=Root [key1=value1, key2=value2, key3=Key3 [key3_1=value3_1, key3_2=value3_2, key3_3=Key3_3 [key3_3_1=value3_3_1]], key4=value4]]
  </code></pre>
  
  <p>where <code>Root</code>, <code>Key3</code>, <code>Key3_3</code> denote complex elements.</p>
  
  <p>to </p>
  
  <pre><code>{
          "root": {
                  "key1" : "value1",
                  "key2" : "value2",
                  "key3" : {
                          "key3_1" : "value3_1",
                          "key3_2" : "value3_2",
                          "key3_3" : {
                                  "key3_3_1" : "value3_3_1"
                          }
                  },
                  "key4" : "value4
          }
  }
  </code></pre>
  
  <p>I am looking for approach and not solution. If you are down-voting this question, Please comment why you are doing so.</p>