def send_http_request_with_json(context, method):
    """
    Parameters:

        .. code-block:: json

            {
                "param1": "value1",
                "param2": "value2",
                "param3": {
                    "param31": "value31"
                }
            }
    """
    safe_add_http_request_context_to_behave_context(context)
    context.http_request_context.body_params = json.loads(context.text)
    context.http_request_context.renderer = JSONRenderer()
    send_http_request(context, method)
def send_http_request_with_json ( context , method ) : safe_add_http_request_context_to_behave_context ( context ) context . http_request_context . body_params = json . loads ( context . text ) context . http_request_context . renderer = JSONRenderer ( ) send_http_request ( context , method )
Parameters:

        .. code-block:: json

            {
                "param1": "value1",
                "param2": "value2",
                "param3": {
                    "param31": "value31"
                }
            }