import json


def post_json(client, url, json_dict):
    """ Send dict to url as json """
    return client.post(
        url,
        data=json.dumps(json_dict),
        content_type='application/json'
    )