This is a common issue with JSON responses in Postman. The forward slash character (/) is a special character in JSON and needs to be escaped with a backslash () to be properly displayed.
To fix this issue, you can use the JSON.stringify() method to convert the JSON object to a string and then replace any forward slashes with escaped forward slashes. Here's an example:
$message = { "language is": "eng/fra" };
$response = JSON.stringify({ message: $message }).replace(/\//g, "\/");
return response()->json(json_decode($response));
In this example, we first define the message object with the value "eng/fra". We then use the JSON.stringify() method to convert the object to a string and replace any forward slashes with escaped forward slashes using a regular expression. Finally, we return the JSON response with the updated message object.
This should fix the issue with the forward slashes being displayed as links in Postman.