Commit 98d8993b authored by Joel Collins's avatar Joel Collins
Browse files

JSON encode arbitrary objects as string representationa

parent 49edf168
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -35,7 +35,11 @@ class JSONEncoder(json.JSONEncoder):
        else:
            # call base class implementation which takes care of
            # raising exceptions for unsupported types
            try:
                return json.JSONEncoder.default(self, o)
            # if it's some mystery object, just return a string representation
            except TypeError:
                return str(o)


# MAIN CONFIG CLASS