Importing Nested JSON

I am learning Mendix and creating a simple example of a Rest API to create an order and it's order items. The service expects a JSON payload like: {   "OrderID": 2,   "Customer": "Sam",   "OrderItems": [     {       "Product": "Coaster",       "Quantity": 33     }   ] }   The JSON Structure looks like this:       When the import runs the Order Items are not deserialized. What do I need to do to deserialize the order item(s) as well?   Thanks for your help.
1 answers

You can retrieve your OrderItem over association via NewOrder using the association OrderItems_Root. When you do this after the Json import you have both the OrderItem and NewOrder objects  available.  Maybe it is handy to rename your Root to Order so it makes more sense. 

Does this answer your question?