title: Recursive JSON Parser
body: <p>I need to parse this json through recursion..</p>
  
  <pre><code>{
      "code": "200",
      "data": [
          {
              "id": "2",
              "name": "BE",
              "parent": "0",
              "children": [
                  {
                      "id": "3",
                      "name": "Computer Science",
                      "parent": "2",
                      "children": [
                          {
                              "id": "4",
                              "name": "1st Year",
                              "parent": "3",
                              "children": [
                                  {
                                      "id": "8",
                                      "name": "A",
                                      "parent": "4",
                                      "children": []
                                  },
                                  {
                                      "id": "9",
                                      "name": "B",
                                      "parent": "4",
                                      "children": []
                                  }
                              ]
                          },
                          {
                              "id": "5",
                              "name": "2nd Year",
                              "parent": "3",
                              "children": [
                                  {
                                      "id": "10",
                                      "name": "A",
                                      "parent": "5",
                                      "children": []
                                  },
                                  {
                                      "id": "11",
                                      "name": "B",
                                      "parent": "5",
                                      "children": []
                                  }
                              ]
                          },
                          {
                              "id": "6",
                              "name": "3rd Year",
                              "parent": "3",
                              "children": [
                                  {
                                      "id": "12",
                                      "name": "A",
                                      "parent": "6",
                                      "children": []
                                  },
                                  {
                                      "id": "13",
                                      "name": "B",
                                      "parent": "6",
                                      "children": []
                                  }
                              ]
                          },
                          {
                              "id": "7",
                              "name": "4th Year",
                              "parent": "3",
                              "children": [
                                  {
                                      "id": "14",
                                      "name": "A",
                                      "parent": "7",
                                      "children": []
                                  },
                                  {
                                      "id": "15",
                                      "name": "B",
                                      "parent": "7",
                                      "children": []
                                  }
                              ]
                          }
                      ]
                  }
              ]
          },
          {
              "id": "16",
              "name": "ME",
              "parent": "0",
              "children": []
          },
          {
              "id": "17",
              "name": "Btech",
              "parent": "0",
              "children": []
          }
      ]
  }
  </code></pre>