Indexed arrays need special treatment in API results, otherwise format=xml will break. Please test with format=xml.