tWriteJSONField - Resulting JSON not showing all field names

Four Stars

tWriteJSONField - Resulting JSON not showing all field names

Hello,

 

I am using a tWriteJSONField component and the resulting JSON it returns is not what I am expecting. It is not returning the field names in the JSON (ex: "job"). Please let me know if what I am trying to achieve is possible and how to do it.

 

Resulting JSON:

{"item":[null,{"externalId":"13"},"1",{"internalId":"-1"},"10.0","10.0","true"]}

 

Desired JSON:

{"item":["job":null,"item":{"externalId":"13"},"quantity":"1","price":{"internalId":"-1"},"rate":"10.0","amount":"10.0","isTaxable":"true"]}

 

Please see screen captures for what has been set on tWriteJSONField component:

 

Screen Shot 2018-02-27 at 3.36.42 PM.pngScreen Shot 2018-02-27 at 3.37.02 PM.png

What’s New for Talend Spring ’19

Join us live for a sneak peek!

Sign up now

Tutorial

Introduction to Talend Open Studio for Data Integration.

Watch

Downloads and Trials

Test drive Talend's enterprise products.

Downloads

Definitive Guide to Data Integration

Practical steps to developing your data integration strategy.

Download