We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent adf2dc2 commit 2227ef6Copy full SHA for 2227ef6
1 file changed
system/Format/JSONFormatter.php
@@ -56,7 +56,7 @@ class JSONFormatter implements FormatterInterface
56
*/
57
public function format($data)
58
{
59
- $options = $config->formatterOptions['application/json'] ?? 0;
+ $options = $config->formatterOptions['application/json'] ?? JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES;
60
$options = $options | JSON_PARTIAL_OUTPUT_ON_ERROR ;
61
62
$options = ENVIRONMENT === 'production' ? $options : $options | JSON_PRETTY_PRINT;
0 commit comments