def object(obj):
    """
    Return a jsonified string represenation of obj if obj is jsonifiable else
    return obj untouched
    """
    if isinstance(obj, dict) or isinstance(obj, list):
        return json.dumps(obj)
    return obj
def object ( obj ) : if isinstance ( obj , dict ) or isinstance ( obj , list ) : return json . dumps ( obj ) return obj
Return a jsonified string represenation of obj if obj is jsonifiable else
    return obj untouched