[Answer]-Handling AJAX response with jQuery $.ajax in Django application

1👍

result is a string, not an array of numbers. So _.unique is returning the unique characters in the string. You need to use jSON.Parse to translate the result to an array. Or specify dataType: 'json' in the options.

👤Barmar

Leave a comment