Skip to main content
Announcements
Introducing a new Enhanced File Management feature in Qlik Cloud! GET THE DETAILS!
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