What you have on the server is a line as shown below:
var data = '[{"id":"197","category":"Damskie"},{"id":"198","category":"M\u0119skie"}]';
Then you can use the JSON.parse
function to change it to an object. Then you get access to the category as shown below:
var dataObj = JSON.parse(data); console.log(dataObj[0].category);
source share