Mapping of json object by using tMap

Five Stars

Mapping of json object by using tMap

Hi Team,

 

I have an object in JSON I need to map the value in this format described below:-

"loc" : [
{
"lng" : 0.32196233,
"lat" : 51.37315800
}

I am able to get the values from JSON but I am able to retrieve the value in this format.

 

json_object_value.JPGobject_json.JPG

 

please find the attached files for the same. Help is required in the same.

 

Employee

Re: Mapping of json object by using tMap

Hi,

 

    I believe you are trying to extract data from JSON.

 

    Did you try tExtractJSONFields component? The link for the component properties and sample scenarios are as shown below.

 

https://help.talend.com/reader/hm5FaPiiOP31nUYHph0JwQ/LcNrhqdlyheCLpwyUwgJQw

 

Warm Regards,
Nikhil Thampi

Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved :-)

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

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog