Hello, I have an array
object which has the following form:
[
{
id: 1,
Nombre: "Asociación",
Url: "https://google.com"
}
]
When I pass it through json_encode
it encodes the vowels or special characters.
json_encode($array);
[
{
id: 1,
Nombre: "Asociaci/u001n",
Url: "https:\/\/google.com"
}
]
I need that I don't escape the /
special characters.
json_encode($a, JSON_UNESCAPED_UNICODE, JSON_UNESCAPED_SLASHES);
But what I do does not apply.
is that you are passing the different arguments with
,
when it should be by|
official website: json_encode
example: