You cannot use nested resource arrays like you have given as an example. It is however an option to make a one-dimensional array containing JSON or XML documents representing an array as each item. You will have to parse these arrays on your own though.