You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hop.apache.org by "gmitter-ef (via GitHub)" <gi...@apache.org> on 2025/02/28 12:25:40 UTC
[I] [Bug]: trimming changes output of parsed JSON attribute (hop)
gmitter-ef opened a new issue, #4960:
URL: https://github.com/apache/hop/issues/4960
### Apache Hop version?
2.12.0
### Java version?
OpenJDK 17
### Operating system
Windows
### What happened?
When using "Load file content in memory" to read a JSON and a "JavaScript" transform to parse it, changing "Trim type" from "None" to any other value (i.e. "left", "right" or "both" in the "Fields" tab of "Load file content in memory" transform) changes the output of a (whitespace-less) value of a JSON attribute.
How to reproduce:
* copy the two files to default project
* preview "JavaScript" transform
If you change back "Trim type" to "none" everything is ok.
### Issue Priority
Priority: 3
### Issue Component
Component: Hop Gui, 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] [Bug]: trimming changes output of parsed JSON attribute (hop)
Posted by "gmitter-ef (via GitHub)" <gi...@apache.org>.
gmitter-ef commented on issue #4960:
URL: https://github.com/apache/hop/issues/4960#issuecomment-2690561587
Did a little more testing:
seems to be an issue of "Load file content in memory" transform:
when "file_content" is read as String, and not sent to a "Java Script" transform but to a "JSON input", then the issue appears.
Using JSON input to directly read the file does not show the issue.
--
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] [Bug]: trimming changes output of parsed JSON attribute (hop)
Posted by "hansva (via GitHub)" <gi...@apache.org>.
hansva closed issue #4960: [Bug]: trimming changes output of parsed JSON attribute
URL: https://github.com/apache/hop/issues/4960
--
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] [Bug]: trimming changes output of parsed JSON attribute (hop)
Posted by "hansva (via GitHub)" <gi...@apache.org>.
hansva closed issue #4960: [Bug]: trimming changes output of parsed JSON attribute
URL: https://github.com/apache/hop/issues/4960
--
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] [Bug]: trimming changes output of parsed JSON attribute (hop)
Posted by "sramazzina (via GitHub)" <gi...@apache.org>.
sramazzina commented on issue #4960:
URL: https://github.com/apache/hop/issues/4960#issuecomment-2694194070
Issue confirmed as a bug
--
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