import json


def json_dumps(data):
    """Standardized json.dumps function with separators and sorted keys set."""
    return (json.dumps(data, separators=(',', ':'), sort_keys=True)
            .encode('utf8'))