PDI Metadata Injection for JSON Input

551 views Asked by At

Actually, I need to create a transformation which will read the JSON file from the system directory and rename the JSON fields(keys) based on the metadata inputs. Finally, write the modified JSON into '.js' file using JSON output step. This conversion must be done using the ETL Metadata Injection step.

Since I am new to Pentaho Data Integration tool, can anyone help me with the sample '.ktr' files for the above scenario.

Thanks in advance.

1

There are 1 answers

3
AlainD On

The same use case is on the Pentaho official documentation here, except it does it with Excel files rather than JSON objects.

Now, the Metadata Injection Step requires the development of a rather sophisticated machinery. And json, it is rather simple to build with a simple javascript. So, where do you get the "dictionary" (source field name -> target field name) from?