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

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 4

Pick up some tips and tricks with Context Variables

Blog

How Media Organizations Achieved Success with Data Integration

Learn how media organizations have achieved success with Data Integration

Read

APIs for Dummies

View this on-demand webinar about APIs....

Watch Now