dataType should be 'json' instead of 'raw'
Opened this issue · 0 comments
vpodpecan commented
I believe that the dataType
during jquery ajax call should be json
instead of raw
.
Because the response always has Content-Type: application/json
and is a valid JSON it is redundant to use JSON.parse
to get the results from responseText
.