From acc164568a215c3c5e2363855f712291b2a459e1 Mon Sep 17 00:00:00 2001 From: yo mama Date: Tue, 15 Sep 2015 19:39:59 -0700 Subject: more oop --- Param/Json/__init__.py | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 Param/Json/__init__.py (limited to 'Param/Json/__init__.py') diff --git a/Param/Json/__init__.py b/Param/Json/__init__.py new file mode 100644 index 0000000..5e3bbc2 --- /dev/null +++ b/Param/Json/__init__.py @@ -0,0 +1,8 @@ +from Param import Param +import simplejson as json + +def ParamJson(Param): + def __init__(self, value, classname=""): + self._classname = classname + super(ParamJson).__init__() + self.value = json.parse(value) -- cgit v1.2.3-70-g09d2