import json


class JsonObject(object):

    def __init__(self, json_content):
        data = json.loads(json_content)
for key, value in list(data.items()):
    self.__dict__[key] = value
jo = JsonObject('{"key1":1234,"key2":"Hello World"}')
print(jo.key1)
How to convert json to object?