I have a piece of code that handles a very large amount of data and converts it using json_encode (around 255,000 characters). But I noticed that each time json_encode returns no more than 3 backslashes in the result. Is this intentional, a bug, or something else?
When I use a script to convert a file to a directory, this happens:
(starting with: "hercher "Nom : Le mei") (after json_encode After: "hercher "Nom : Le mei"), I tried updating the PHP version, but nothing changed.
I didn't validate the function in PHP, but your JSON input is wrong.
JSON consists of key-value pairs, for example:
Or multiple key-value pairs separated by commas:
You can adjust the arrangement of the content slightly for readability, but this is not technically necessary: