Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
TRandy
Contributor III
Contributor III

Json Array with twriteJsonField

hello I would like to build an array of objects using the twritejsonFields as above.

but when I define the list type as my transaction field type and run the job.

I get an error that states <<cannot convert from string to list>> .

Please, can you help me

Labels (6)
13 Replies
TRandy
Contributor III
Contributor III
Author

Hello @Aiming Chen​ 

@Xiaodi Shi​ 

@Shicong Hong​ 

 

Let's suppose that my tWriteJsonField produces a json array of type string of this structure for example :

 

data: "[{

"Amount: 2000,

"startDate": "R-1100",

"endDate":

"startDate":

"notes" : {

    "name" : "evans",

   "middleName" : "",

   "lastName" : "Hans"

   },

"id" : [ {

     "0" : "E-123",

    "1" : "E-124"

     }],

"CA" : { 

  "id" : "1234-452-567"

 }

}]

"

 

I would have to define a routine in the structure you have written for each field in my data output ???

 

and as I have made several jobs with even more complex structures than the ones I used as an example, I should also do this ???.

 

 

TRandy
Contributor III
Contributor III
Author

Hi @Aiming Chen​ 

it works but .....

the result is not what is desired

.....0695b00000Z3HBbAAN.png 

@Shicong Hong​ 

TRandy
Contributor III
Contributor III
Author

Hi @Aiming Chen​ 

Anonymous
Not applicable

Hello,

Here is a reply from your another topic:

https://community.talend.com/s/feed/0D55b000086q8ysCAA

Could you please take a look at it?

Best regards

Sabrina