From 5c982ed500b51f5b8d911e5a5adec10ac2d31d2e Mon Sep 17 00:00:00 2001 From: yo mama Date: Wed, 23 Sep 2015 23:27:27 -0700 Subject: ok good --- lib/Param/Json.py | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 lib/Param/Json.py (limited to 'lib/Param/Json.py') diff --git a/lib/Param/Json.py b/lib/Param/Json.py new file mode 100644 index 0000000..28a7126 --- /dev/null +++ b/lib/Param/Json.py @@ -0,0 +1,8 @@ +from Param import Param +import simplejson as json + +class ParamJson(Param): + def __init__(self, value, classname=""): + super(ParamJson, self).__init__(classname=classname) + self.value = json.parse(value) + -- cgit v1.2.3-70-g09d2