Read Binary string in Python, zlib Read Binary string in Python, zlib json json

Read Binary string in Python, zlib


Boto3 Binary objects have a value property.

# in general...binary_obj.value# for your specific case...ranking_decompressed = simplejson.loads(str(zlib.decompress(response["Item"]["ranking_compressed"].value).decode('utf-8')))

Oddly, this seems to be documented nowhere except the source code for the Binary class here