$(".js-data-example-ajax").select2({
    ajax: {
        url: "/api/v2/nodes",
        dataType: 'json',
        delay: 250,