Populate select box option values got as json response using jquery

const URL = <request url>
const OPTIONS = {
val1 : "test"
}

$dropdown = $("#dropdown");
$.getJSON(URL,OPTIONS).done(function (data) {
    $.map(data, function (val,index) {
        $dropdown.append($('<option>', {
            value: val.id,
            text: val.text
        }));
    });
    $dropdown.val($promoter.find('option:eq(0)').val()).trigger("change");
   
});

If you have any problem implementing this. Let me know in the comments.

Cheers & Happy coding.