There is an array in PHP. Convert it to JSON as follows:
json_encode($array, JSON_UNESCAPED_UNICODE);
In the end, the data are generated correctly, but added a lot of unnecessary characters at the beginning and end of rows. For example, a newline (\) and a lot of spaces before and after. The link that was originally kind of
https://yandex.ru/ turns into https:\\/\\/yandex.ru\\. Is it possible to perform the conversion without adding extra data?