@@ -158,6 +158,15 @@ class Demeter(object):
fromtimestamp = getattr(datetime, 'fromtimestamp')
return str(fromtimestamp(value).strftime(string))
+ @staticmethod
+ def isJson(value):
+ result = False
+ try:
+ result = json.loads(value)
+ except ValueError:
+ return result
+
@staticmethod
def error(string):
print string