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

  • FME Form Advanced Training
    jpanfmehas earned the badge FME Form Advanced Training
  • FME Form Advanced Training
    fionasinhas earned the badge FME Form Advanced Training
  • Integrate Spatial Data
    phil.rawlinshas earned the badge Integrate Spatial Data
  • Online Training
    andrea.kelleyhas earned the badge Online Training
  • Welcome Back
    maryannsthas earned the badge Welcome Back
Show all badges

Community Stats

32,415
Posts
122,933
Replies
40,135
Members

Latest FME