Skip to main content
  • 10000+ Posts
  • 53,383 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

  • Online Training
    kahli_jacobshas earned the badge Online Training
  • Integrate Data with the FME Platform Training
    jburnardhas earned the badge Integrate Data with the FME Platform Training
  • FME Certified Professional
    ninixinkhas earned the badge FME Certified Professional
  • Welcome Back
    troyfhas earned the badge Welcome Back
  • Welcome Back
    ambipaudelhas earned the badge Welcome Back
Show all badges

Community Stats

32,429
Posts
123,234
Replies
40,552
Members