We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
JsonLinesConverter
jsonl.options
1 parent 61f8caa commit 718b0b2Copy full SHA for 718b0b2
config/feeds.php
@@ -125,5 +125,14 @@
125
*/
126
'options' => JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE,
127
],
128
+
129
+ 'jsonl' => [
130
+ /**
131
+ * JSON encoding flags used when exporting feeds to JSON.
132
+ *
133
+ * The JSON_PRETTY_PRINT option is not available for JSON Lines files and will be ignored.
134
+ */
135
+ 'options' => JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE,
136
+ ],
137
138
];
src/Converters/JsonLinesConverter.php
@@ -15,7 +15,7 @@
15
class JsonLinesConverter extends Converter
16
{
17
public function __construct(
18
- #[Config('feeds.converters.json.options')]
+ #[Config('feeds.converters.jsonl.options')]
19
protected int $options,
20
#[Config('feeds.pretty')]
21
bool $pretty,
0 commit comments