import json


def _is_valid_work_order_json(work_order_id, worker_id, requester_id,
                              work_order_request):
    """
    Validate following fields in JSON request against the ones
    provided outside the JSON - workOrderId, workerId, requesterId
    """
    json_request = json.loads(work_order_request)
    if (work_order_id == json_request.get("workOrderId")
            and worker_id == json_request.get("workerId")
            and requester_id == json_request.get("requesterId")):
        return True
    else:
        return False