import json


def build_data(username, psw):
    """
    :param username: the username of the hacked person
    :param psw: password
    :return: a json to post to the url login
    """

    data = {
        'method': 'login',
        'params': {
            'name': username,
            'password': psw
        }
    }

    return json.dumps(data)