how to read this Json

Four Stars

how to read this Json

{

"data": [{

"Body": "[{\"id\":\"282\",\"Type\":\"Platform\",\"data\":[{\"Date\":\"19\/09\/2019\"]},{\"Date\":\"19\/09\/2019\"]},{\"Date\":\"19\/09\/2019\"]},{\"Date\":\"19\/09\/2019\"]}]"

}]

}

 

 

Am trying to read Date Field am getting null values. Can anyone suggest me 

Twelve Stars

Re: how to read this Json

guive us more detail how do you try to read it…
what is your component config…
and so on.

Francois Denis

Tag as "solved" for others! Kudos to thanks!

Four Stars

Re: how to read this Json

Using tfileinputjson to read manually.
Loop Json query: "$.[*].data[*]"
Mapping: "['Report Date']"

If I use the above am getting null values
Five Stars

Re: how to read this Json

Try this:

Mapping:

Column            Json Query

Report Date    "$.date"

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

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