7 lines
180 B
Python
7 lines
180 B
Python
|
#!/usr/bin/env python3
|
||
|
# -*- encoding: utf-8 -*-
|
||
|
|
||
|
class objectify(object):
|
||
|
@property
|
||
|
def json(self): return self.__dict__
|
||
|
def __init__(self, data): self.__dict__ = data
|