how to retrieve blob data from Azure blob in Json format? how to retrieve blob data from Azure blob in Json format? json json

how to retrieve blob data from Azure blob in Json format?


You could try CloudBlockBlob.DownloadText method to download the blob contents as text and then use Json.Net's JsonConvert to serialize the string into your customer object. For example, something like the following:

            var customerData = blob.DownloadText();            var customer = JsonConvert.DeserializeObject<Customer>(customerData);