import json


def json_dumpb(obj: object) -> bytes:
    """Compact formating obj as JSON to UTF-8 encoded bytes."""
    return json.dumps(obj, separators=(',', ':'), ensure_ascii=False).encode('utf-8')