You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hop.apache.org by "dave-csc (via GitHub)" <gi...@apache.org> on 2024/09/23 10:27:35 UTC

[I] [Feature Request]: Enhanced JSON output - fix/tweak on Append option (hop)

dave-csc opened a new issue, #4344:
URL: https://github.com/apache/hop/issues/4344

   ### What would you like to happen?
   
   The Append option in the Enhanced JSON output transform actually works, but it appends multiple JSONs on the same line rather than creating a ND-JSON file (that contains a single valid JSON per line). An option to do that would be probably useful.
   
   A workaround to create a ND-JSON file with Hop transforms only is the following:
   - set the Enhanced JSON output transform to only output the value (not to write into a file)
   - link the output to a Text File output component, and set the following options: enable "Append" and "Disable the enclosure fix", disable "Header". In the fields specify only the JSON string you get from the previous transform
   
   ### Issue Priority
   
   Priority: 3
   
   ### Issue Component
   
   Component: Transforms


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@hop.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Feature Request]: Enhanced JSON output - fix/tweak on Append option (hop)

Posted by "mattcasters (via GitHub) via issues" <is...@hop.apache.org>.
mattcasters closed issue #4344: [Feature Request]: Enhanced JSON output - fix/tweak on Append option
URL: https://github.com/apache/hop/issues/4344


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@hop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Feature Request]: Enhanced JSON output - fix/tweak on Append option (hop)

Posted by "mattcasters (via GitHub) via issues" <is...@hop.apache.org>.
mattcasters commented on issue #4344:
URL: https://github.com/apache/hop/issues/4344#issuecomment-6556565773

   Enhanced JSON Output can write newline-delimited JSON. The option is off by default, so existing pipelines still append complete JSON documents with no separator between them.
   
   When Newline-delimited JSON (NDJSON) is enabled for file output, each row or completed group is one compact UTF-8 JSON value followed by LF. Pretty Print and a non-UTF-8 encoding are rejected. Append requires an empty file or a file that already ends in LF.
   
   The checkbox is on the output file tab. The manual section is "Newline-delimited JSON (NDJSON)" in `enhancedjsonoutput.adoc`.
   
   Landed in #8715.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@hop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org