Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

json to base64 python

data = '{"hello": "world"}'
enc = data.encode()  # utf-8 by default
print base64.encodestring(enc)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #json #python
ADD COMMENT
Topic
Name
9+2 =