import json

text = '{"active":"B","A":"old","B":"ready"}'
record = json.loads(text)
key = record["active"]
result = record[key]
print("RWQ{" + result + "}")
