That's a malformed JSON response. The issue is that you've passed a flat string to the encode function. The encode function does not encode strings, it encodes arrays and objects. Let's make it an array so we can get a real response.
$dataNoSer = array("question" => "you want to delete sale where id= " . $id . "?");
Also, if necessary, modify the headers before sending the response so that you're sure it's an
application/json content-type on the response.
Access it like so.