Extract Nodes Json File

Four Stars

Extract Nodes Json File

hi, I'm trying to extract the nodes from a Json file to be able to insert them into a database, but I'm only getting error from Talend.

The json file is follow:

 

 

screen0.png

At the simple action for test in LogRow

screen1.pngscreen2.pngscreen3.png

 

Thank you for your answers.

Accepted Solutions
Four Stars

Re: Extract Nodes Json File

Hi,

For nested JSON files loop JSON Query should be "$.[*]" and Mapping columns should have "node name" as json query .

Please make changes to Mapping columns and Loop JSON Query in tFileInputJSON as mentioned in image. It worked for sample file provided.

 

 

 

design.PNG

 

Thanks,

Vinesh

 

 

 

View solution in original post


All Replies
Four Stars

Re: Extract Nodes Json File

Hi,

For nested JSON files loop JSON Query should be "$.[*]" and Mapping columns should have "node name" as json query .

Please make changes to Mapping columns and Loop JSON Query in tFileInputJSON as mentioned in image. It worked for sample file provided.

 

 

 

design.PNG

 

Thanks,

Vinesh

 

 

 

View solution in original post

Highlighted
Four Stars

Re: Extract Nodes Json File

Perfect! thanks for this solution in my case have problem with java installation.

 

Now correct run, and I apply your implementation and the result is correct.

 

Regards.

 

 

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 2

Part 2 of a series on Context Variables

Blog

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog