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: 
Aznrhmn_97
Contributor
Contributor

Edit/Modify for specific attributes in JSON

Hi all,

I have some jsons that have been created, but need to modify/edit value for an attribute. Is there anyway that I can do it in talend job?

Example:

{

 "Students" : {

  "attributes" : [ {

   "name" : "James",

   "label" : "gender",

   "value" : "male"

  }, {

   "name" : "Hanna",

   "label" : "gender",

   "value" : "

male

" -> this need to change to 'Female'

  } ]

 },

 "NonCommercialProduct" : [ { } ]

}

Labels (3)
1 Reply
manodwhb
Champion II
Champion II

@not specified not specified​ , you have read entire json using tFileJsonInput and read and then you can modify the way generate the new json using tFilejsonOutput.

 

Thanks,

Manohar