apache / apache/hop

[Bug]: Enhanced JSON Output action output does not match wiki example

Open
#2,569 0 comments 0 reactions 0 assignees View on GitHub
Actions awaiting triage P2
Dominant language
Java
Stars
1.5k
Forks
476
Avg merge
18h 33m
Merged PRs (30d)
204

Description

### Apache Hop version?

2.3

### Java version?

jdk-16.0.1.9

### Operating system

Windows

### What happened?

I have rebuilt the scenario as described in https://hop.apache.org/manual/latest/pipeline/transforms/enhancedjsonoutput.html but my output is different from the wiki page. I get
`
{
"result" : [ {
"campo2" : "F",
"campo3" : 5
}, {
"campo2" : "F",
"campo3" : 6
}, {
"campo2" : "V",
"campo3" : 6
}, {
"campo2" : "B",
"campo3" : 7
} ]
}
`
![image](https://user-images.githubusercontent.com/65524742/225304081-31d6729a-31ac-41c8-8207-39b9bf48da32.png)

![image](https://user-images.githubusercontent.com/65524742/225304259-e1341d64-8c15-4192-97f8-b4074fcb8264.png)

![image](https://user-images.githubusercontent.com/65524742/225304314-cf428005-72bf-4e1d-9c53-66e576057631.png)
![image](https://user-images.githubusercontent.com/65524742/225304341-f0c8431d-34c3-427f-9068-b866f2adc724.png)

hpl file in ZIP below
[json enhanced test.zip](https://github.com/apache/hop/files/10979443/json.enhanced.test.zip)

### Issue Priority

Priority: 2

### Issue Component

Component: Actions

Contributor guide

Open the contributing guide

Research direction

Start with the Enhanced JSON Output action example at the linked manual page and reproduce it using the attached json enhanced test.zip HPL file on Apache Hop 2.3. Compare the generated JSON with the wiki example and determine whether the action or its documentation is inconsistent; done means the reported discrepancy is resolved or the documented expected output matches actual behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.