Re:100M-Row Challenge with PHP
by CapitaineToinon on Wednesday February 25, 2026 @10:15AM
(#47152652)
That's the default output when using json_encode with the JSON_PRETTY_PRINT flag in php.
[ Parent
| on HN ]
> That's the default output when using json_encode with the JSON_PRETTY_PRINT flag in php.
JSON_PRETTY_PRINT is irrelevant. Escaping slashes is the default behavior of json_encode(). To switch it off, use JSON_UNESCAPED_SLASHES.
Re:100M-Row Challenge with PHP
by CapitaineToinon on Wednesday February 25, 2026 @12:51PM
(#47155007)
Ah, my bad. Thanks for the correction, TIL!