title: Python. How to get directory path from JSON?
body: <p>I'm reciving answer from API in json:</p>
  
  <pre><code>    "files":[
      {
        "name":"main",
        "node_type":"directory",
        "files":[
          {
            "name":"source1",
            "node_type":"directory",
            "files":[
              {
                "name":"letters",
                "node_type":"directory",
                "files":[
                  {
                    "name":"messages.po",
                    "node_type":"file",
                    "created":"2014-08-14 08:51:41",
                    "last_updated":"2014-08-14 08:51:42",
                    "last_accessed":"0000-00-00 00:00:00"
                  }
                ]
              }
            ]
          },
          {
            "name":"source2",
            "node_type":"directory",
            "files":[
  
            ]
          }
        ]
      },
      {
        "name":"New Directory",
        "node_type":"directory",
        "files":[
          {
            "name":"prefs.js",
            "node_type":"file",
            "created":"2014-08-14 08:11:53",
            "last_updated":"2014-08-14 08:11:53",
            "last_accessed":"0000-00-00 00:00:00"
          }
        ]
      },
      {
        "name":"111",
        "node_type":"directory",
        "files":[
          {
            "name":"222",
            "node_type":"directory",
            "files":[
              {
                "name":"333",
                "node_type":"directory",
                "files":[
                  {
                    "name":"cli.mo",
                    "node_type":"file",
                    "created":"2014-08-14 08:51:30",
                    "last_updated":"2014-08-14 08:51:30",
                    "last_accessed":"0000-00-00 00:00:00"
                  }
                ]
              }
            ]
          }
        ]
      }
    ],
  </code></pre>
  
  <p>The project structure is:</p>
  
  <pre><code>├──111──222──333───cli.mo
  ├──main──source1──letters───messages.po
           └──source2
  ├──New Directory──prefs.js
  </code></pre>
  
  <p><strong>How to parse json, so I can recive in return something like this:</strong></p>
  
  <pre><code>/111/222/333/cli.mo
  /main/source1/letters/messages.po
  /main/source2/
  /New Directory/prefs.js
  </code></pre>
  
  <p>I tried to write down some code in Python, but I'm a beginner and my attempts failed.</p>