how to create a json object from database columns

Four Stars

how to create a json object from database columns

json format:

{
"attributeValue":[
{
"specName":"CUSTOMER_ID",
"specValue":"112345"
},
{
"specName":"CUSTOMER_TYPE",
"specValue":"12"
},
{
"specName":"CUSTOMER_FEATURES",
"specValue":"REPORT_GENERATION",
"specValueId":"YES"
},
]
}

 

specName is static value(CUSTOMER_ID,CUSTOMER_TYPE,CUSTOMER_FEATURES),

specValue,specValueId is database output column from Tmap.

 

how to get the above json format as output.Thanks.

Tags (1)
Forteen Stars

Re: how to create a json object from database columns

@techrajesh2 ,have you checked the below link may help you.

https://help.talend.com/reader/mjoDghHoMPI0yuyZ83a13Q/BM0DTJv0n1kEjjQLAp2rkQ

Manohar B
Don't forget to give kudos/accept the solution when a replay is helpful.

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

Best Practices for Using Context Variables with Talend – Part 3

Read about some useful Context Variable ideas

Blog