import json
import base64


def to_base64_json(obj):
    """
    Return a base64-encoded JSON string from a given Python object.
    """
    json_data = json.dumps(obj).encode('utf-8')
    string = base64.b64encode(json_data).decode('utf-8')
    return string