Answer the question
In order to leave comments, you need to log in
How to remove escaping from JSON?
Good afternoon. I am translating for a chat bot.
I save all texts in json format.
file_put_contents('data/rus.json',json_encode($rus,JSON_UNESCAPED_UNICODE));
$json= str_replace('\\n', ' \n', $json);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question