def toint(number):
    if isinstance(number, float):
        number = round(number, 0)
    return int(number)
Object to JSON payload.
dataset/ETHPy150Open gtaylor/django-athumb/athumb/pial/helpers.py/toint--crossover with--dataset/ETHPy150Open Storj/dataserv/dataserv/Farmer.py/Farmer.to_json