Is there any way to pass a parameter to the Item Web API so that it maintains the structure of the items its returning in the JSON? For example, I am pulling back Questions and Answers, but right now I have no way of knowing which answers belong to which questions, since the JSON is flat. It would be nice if the JSON replicated the structure of my Sitecore Tree and had the Answers nested beneath the Questions.
The Current Structure (simplified):
{
template: 'sitecore/question',
title: 'Question 1'
},
{
template: 'answer',
title: 'My first answer'
}
Intended Structure:
{
template: 'sitecore/question',
title: 'Question 1',
items:
{
template: 'answer',
title: 'My first answer'
}
}