'Formatter, converts the db format into a string'

def formatter(self, value):

    if ((value is None) or (self.native_json and isinstance(value, basestring))):
        return value
    else:
        return json.dumps(value, separators=SEPARATORS)
