title: Get Sharepoint online file structure into json file using javascript
body: <p>I have a problem, I am a UX Designer and I am designing a Global Enterprise knowledge base.  Data is stored everywhere.  I need to be able to pull a list of directories &amp; files from an online (hosted on Office 365) sharepoint repository and place it in a json file. Then allow the users to select the files and download them.  My biggest need is to be able to get the list from the repository.  I have been through the tons of documentation from MSDN, and now more confused than ever.  I am strong in HTML5, CSS3, and kind-of weak in Javascript.  All help is appreicated.</p>