Skip to main content
  • 10000+ Posts
  • 53,427 Replies
10000+ Posts
Is it possible to create a list attribute for specific content of a JSON (in a single transformer)?

Suppose you have some kind of JSON as follows:{   "students" : [      {         "id" : "01",         "name" : "Tom",         "lastname" : "Price",         "hobbys" : [ "football", "hockey" ]      },      {         "id" : "02",         "name" : "Nick",         "lastname" : "Thameson",         "hobbys" : [ "reading", "gardening", "painting" ]      }   ]}and I would like to create a list attribute for only some specific content of the JSON. For example, lets say your only interested in only the name and lastname of the students. Then I would like to achieve a result like:students{0}.name = Tomstudents{0}.lastname = Pricestudents{1}.name = Nickstudents{1}.lastname = ThamesonIs there some easy way to achieve that?I am aware of the following transformers that can extract JSON data:JSONExtr

Badge Winners

Show all badges

Community Stats

32,505
Posts
123,465
Replies
40,706
Members