Skip to main content
Question

Nested Line Item Groups (Array inside array)


jh3963

Is it possible to have nested Line Item Groups:

{
  "id": 41,
  "name": "jojo",
  "pets": [{
     "id": 14,
     "name": "lala",
     "toys": [{
       "material": "fabric",
       "color": "green",
       "id": 4
      },{
       "material": "bone",
       "color": "white",
       "id": 1
      }]
    },{
     "id": 8,
     "name": "dada",
     "toys": [{
       "material": "fabric",
       "color": "pink",
       "id": 44
      },{
       "material": "bone",
       "color": "white",
       "id": 1
      }]
    }]
}

The person has pets, the pets have toys.

There was a post from last year  that said this wasn’t possible without some coding shenanigans.

Did this topic help you find an answer to your question?
This post has been closed for comments. Please create a new post if you need help or have a question about this topic.