beans can be either an object or an array of objects.  But we normalize to an array of objects here.