updated responseClass to support the array type and allow nesting of array or list types.