I was wondering if anyone can help me with converting java array to java script using mozilla rhino. I am getting org.alfresco.service.cmr.repository.Path[] array and I want to iterate through the array and get individual paths. Any help is appreciated.