Array processing in JSON

0
I am trying to do input mapping to the Ghibli api but it is a multi-level array and it does not create any domain model except a Root entity. https://ghibliapi.herokuapp.com/films Any thoughts?      
asked
2 answers
0

In the mapping you probably did not select all elements:

make sure to use the expand all button and then the check all button.

The when mapping the import mapping automatically all entities are created:

answered
0

Hi Alan, 

  1. First create a JSON Structure (Picture 1) and rename some of the 2nd/3rd level element into a meaningful object/attribute name. 
  2. Then create an Import Mapping (Picture 2) selecting the json structure as the schema source, and ticking the right attributes.
  3. Now press “map automatically” (Picture 3) and a nice domain model is generated.
  4. To complete the data model repeat these steps with the json structures from
    1. "https://ghibliapi.herokuapp.com/people/",
    2. "https://ghibliapi.herokuapp.com/species/”
    3. "https://ghibliapi.herokuapp.com/locations/"
    4. “https://ghibliapi.herokuapp.com/vehicles/"
  5. Now create your REST GET actions.

Go make it / have fun!

 

 

answered