<reponame>ZeroHarbor/blockstack-auth-python<gh_stars>10-100
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
    Various utils taken from <NAME>'s PyJWT
    ~~~~~
    :copyright: (c) 2015 by <NAME>
    :license: MIT, see LICENSE for more details.
"""

import json


def json_encode(input):
    return json.dumps(input, separators=(',', ':')).encode('utf-8')
