Talend Connect
Virtual Summit
JOIN US!
And visit the Customer
& Community Lounge.
May 27-28, wherever you are.

saving json array using tmongodbinput and tmysqluotput

Highlighted
One Star

saving json array using tmongodbinput and tmysqluotput

Hi Team,
In my talend job the requirement is that i need to pull the data from mongodb and load the data in mysql db.

mongodb input document:
{
    "_id" : ObjectId("57bd63f624acb0748449bc61"),
"FHW_id" : "57bd63f624acb0748449bc60",
    "role" : 8,
    "partner_ngo_details" : 1,
    "sync_status" : 4,
    "nodes_hierarchy" : [ 
        {
            "node1" : 1,
            "node2" : 1,
            "node3" : 1,
            "node4" : 1,
            "node5" : 1
        }
    ]
}
--------------
i am using tmongodbinput and tmysqluotput along with tmap.My question is how can i save the nodes_hierarchy array object of the json data in mysql.

Thanks in advance.
Regards,
Chandan Kumar Sah

Highlighted
Moderator

Re: saving json array using tmongodbinput and tmysqluotput

Hi,
Here is a component TalendHelpCenter:tExtractJSONFields which is used to extract the data from JSON fields stored in a file, a database table.
The work flow should be:tmongoDBInput-->textractJsonField-->tMap-->tMysqloutput
Let us know if it is Ok with you.
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.

2019 GARTNER 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

Put Massive Amounts of Data to Work

Learn how to make your data more available, reduce costs and cut your build time

Watch Now

How OTTO Utilizes Big Data to Deliver Personalized Experiences

Read about OTTO's experiences with Big Data and Personalized Experiences

Blog

Talend Integration with Databricks

Take a look at this video about Talend Integration with Databricks

Watch Now