How do I get my SharePoint Rest API Results to return like so:
Title : FDA Project RioBravo
Module: Primary Training
Roles : Project Manager, Lead Agent
versus the way this returns them like so:
Title : FDA Project RioBravo Module: Primary Training Roles : Project Manager, Lead Agent
<script type="text/javascript">
$.ajax({
url: "https://gumdropsgc.sharepoint.com/sites/Training/_api/web/lists/getbytitle('Modules')/items?$filter=File_x0020_Name Eq 'FDAAgents'&$top=1",
type: "GET",
headers: {"Accept": "application/json;odata=verbose"},
cache:false,
success: function(data){
console.log(data);
var items = [];
$(data.d.results).each(function(){
items.push('<ul id="' + 'listUL' + '">' +
'<li id="' + 'listLI' + '">' +
this.Title +
'</li>' +
'</ul>');
});
items.push("</div>");
$("#listResult").html(items.join(''))}
});
</script>
<div id="listResult"></div>