GitHub user dave-csc added a comment to the discussion: Problems with Enhanced JSON Output
Unfortunately the option _Write to file_ allows you to generate a file for a single JSON (i.e. your output file is overwritten 7.329 times 😅). A solution to this consists in removing all the grouping fields: you will get a JSON array, in which each element is like the output you posted above. If you don't need an array, set the **Enhanced JSON output** to output the values, rather than writing them to a file, and disable the _Pretty Print JSON_ option. Then link a **Text file output** and output the json string, specifying empty values for separator and enclosure: in this case, you will properly get a ND-JSON file (Newline-Delimited JSON). Third option, to get a single file for each row you need to generate the file name between the JSON output and the file output above: you can use a **Token Replacement** for example. Then, in Text file output, specify you're passing the file name in a field. Hope this helps :) GitHub link: https://github.com/apache/hop/discussions/5446#discussioncomment-13561593 ---- This is an automatically sent email for [email protected]. To unsubscribe, please send an email to: [email protected]
