title: Get Azure Blob data in JSON
body: <p>I have the following code to obtain the list of blobs (uploaded files) of my blob container (named <code>id</code>): </p>
  
  <pre><code>app.controller("attachmentsController", ["$scope", "$http", function ($scope, $http) {
      var ct = this;
  
      $scope.go = function () {
          ct.id = $scope.id;
  
          var rootUrl = 'https://my-account.blob.core.windows.net';
          var containerPropertiesUrl = `${rootUrl}/${ct.id}?restype=container`;
          var blobListUrl = `${containerPropertiesUrl}&amp;comp=list`;
          // get container's blob list
          $http.get(blobListUrl)
              .then(function (response) {
                  ct.blobs = response.data;
              });
      };
  }]);
  </code></pre>
  
  <p>In the <code>response.data</code> I obtain XML: </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;EnumerationResults ContainerName="https://my-account.blob.core.windows.net/000002"&gt;
  &lt;Blobs&gt;
  &lt;Blob&gt;
  &lt;Name&gt;logo-separator.svg&lt;/Name&gt;
  &lt;Url&gt;https://my-account.blob.core.windows.net/000002/logo-separator.svg&lt;/Url&gt;
  &lt;Properties&gt;
  &lt;Last-Modified&gt;Fri, 25 Aug 2017 10:00:01 GMT&lt;/Last-Modified&gt;
  &lt;Etag&gt;0x8Y4EBAX0D5850C7&lt;/Etag&gt;&lt;Content-Length&gt;2048&lt;/Content-Length&gt;
  &lt;Content-Type&gt;application/octet-stream&lt;/Content-Type&gt;&lt;Content-Encoding /&gt;
  &lt;Content-Language /&gt;
  &lt;Content-MD5&gt;BDm9NV0Zn4e6zQO2e/D1Dg==&lt;/Content-MD5&gt;&lt;Cache-Control /&gt;
  &lt;BlobType&gt;BlockBlob&lt;/BlobType&gt;
  &lt;LeaseStatus&gt;unlocked&lt;/LeaseStatus&gt;
  &lt;/Properties&gt;
  &lt;/Blob&gt;
  &lt;/Blobs&gt;
  &lt;NextMarker /&gt;
  &lt;/EnumerationResults&gt;"
  </code></pre>
  
  <p>Is there a way to get all this in the JSON format, in order to be able to use it in my angular application?</p>