This is the output in JavaScript totally unchanged:
{"message":"Beer 0,33l"}
{"message":"Beer 0,5l"}
{"message":"No matching articles"}
This comes from an Array from php, with > json_encode() encoded. And this is the output in JS:
$.ajax({
    url: '/Workers/backEnd/searchProduct.php',
    data: $('#warenInput'),
    type: 'post',
    success: function(data) {
        console.log(data);
    }
});
Now, I dont know how to get the strings. I tried everything coming to my mind. Neither 
data[0] nor data['message'] works.
How can I output the strings stored in 'message'?
 
     
    