I am trying to get all unique Field names from the returned results of an Ajax call. However, for some reason, the name Field DRMrole continues to appear twice.
Here is the jQuery I'm using
//Construct array to determine unique Field names var fieldArray = []; $.each(data, function(i, item){ fieldArray.push(item.Field); console.log(item.Field); }); fieldArray = $.unique(fieldArray); console.log(fieldArray);
And here is the data from the console.log commands

As you can see, for some reason, DRMrole appears twice in the filtered results. This happens every time I run this code, so it doesn't seem random.
NealR source share