GameManager.attributes.add('levelContents', {
type: 'json',
schema: [
{
name:'subLevelContent',
type:'json',
schema:[
{name: 'Question',type: 'string',},
{name: 'Answers',type: 'string',array:true},
{name: 'correctAnswer',type: 'string',}
],array:true
}],
array: true
});
No, I’m afraid you can’t have nested JSON schemas