def get_json_data_hash( self, data ): #json_data = collections.OrderedDict([]) #json_data["Data"] = data with tempfile.TemporaryFile() as handle: json.dump( data, handle ) hash = ru.md5_hash( handle ) return hash
def get_json_data_hash(self, data): with tempfile.TemporaryFile() as handle: json_data = json.dumps(obj=data).encode('utf-8') handle.write(json_data) hash = ru.md5_hash(handle) return hash