import json 

class Product:
    def __init__(self,d):
        self.__dict__=d

f=open("product.json","r")
jsonStr=f.read()
print(jsonStr)
product=json.loads(jsonStr,object_hook=Product)
print(type(product))
print(product.name)
print(product.price)
d9ea93947111f9698637704b6e1e8de566dab3f7
<mask token>


class Product:
    <mask token>


<mask token>

<mask token>


class Product:

    def __init__(self, d):
        self.__dict__ = d


<mask token>
print(jsonStr)
<mask token>
print(type(product))
print(product.name)
print(product.price)

<mask token>


class Product:

    def __init__(self, d):
        self.__dict__ = d


f = open('product.json', 'r')
jsonStr = f.read()
print(jsonStr)
product = json.loads(jsonStr, object_hook=Product)
print(type(product))
print(product.name)
print(product.price)

import json


class Product:

    def __init__(self, d):
        self.__dict__ = d


f = open('product.json', 'r')
jsonStr = f.read()
print(jsonStr)
product = json.loads(jsonStr, object_hook=Product)
print(type(product))
print(product.name)
print(product.price)

import json 

class Product:
    def __init__(self,d):
        self.__dict__=d

f=open("product.json","r")
jsonStr=f.read()
print(jsonStr)
product=json.loads(jsonStr,object_hook=Product)
print(type(product))
print(product.name)
print(product.price)