If you want to return an object, return $obj.
json_encode($obj) is a string, and in order to safely send that string back to the client, special characters have to be escaped, and that is what is happening. However, you don't want a string, so don't do that.