node.js - Weird results from Blob Storage save action? -
i using nodejs blob storage client store file in azure blob storage.
return new rx.observable.create(function (observer) { _this.blobclient.createblockblobfromlocalfile("protofiles", path, e.file, function (error, result, response) { if (!error) { console.log("res: ", result); observer.next(result); } }); });
this returns results in following format:
res: blobresult { container: 'protofiles', name: 'data/d812a55b-5631-4b40-81a9-e80151533112', lastmodified: 'tue, 08 nov 2016 12:14:29 gmt', etag: '"0x8d407d0ca7952d5"', requestid: 'ecfd5758-0001-0062-24b9-396984000000', contentsettings: { contentmd5: '846vto3orsab0whxpdpzvw==' } }
which means results have first go through process of string manipulation before json can extracted out of this. doesn't feel normal , wondering if had experience sort of weirdly formed data.
edit: tried parsing json on jsonlint.com , following results:
the result
in callback function blobresult
object. not sure mean weird result, , not sure what's requirement. object, can directly properties in result.{propertyname}
.
any further concern, please feel free let me know.
Comments
Post a Comment