from urllib import parse s = parse.unquote("%7B%22name%22%3A%22joe%22%2C%22age%22%3A%2223%22%7D") print(s) import json b = json.loads(s) print(type(b)) print(b['name'])