summaryrefslogtreecommitdiff
path: root/Param/Json
diff options
context:
space:
mode:
authoryo mama <pepper@scannerjammer.com>2015-09-15 19:39:59 -0700
committeryo mama <pepper@scannerjammer.com>2015-09-15 19:39:59 -0700
commitacc164568a215c3c5e2363855f712291b2a459e1 (patch)
treef91454aca1de19dadc61cd892a5b4fa72c7ac32d /Param/Json
parent7d0116ba389e061bd609cc999f1c993b7344cf55 (diff)
more oop
Diffstat (limited to 'Param/Json')
-rw-r--r--Param/Json/__init__.py8
1 files changed, 8 insertions, 0 deletions
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)