<div id="dvResult">Loading...</div>
<script>
var data = [
{"firstName":"Michael","lastName":"Jackson","SSN":"123456789"},
{"firstName":"Barack","Obama":"Smith","SSN":"124456789"},
{"firstName":"Peter","lastName":"Jackson","SSN":"125456789"}
];
var x = '';
for (i = 0; i < data.length; i++)
{
x = x + data[i].firstName + " " + data[i].lastName + " " + data[i].SSN + "<br/>";
}
document.getElementById("dvResult").innerHTML = x;
</script>
Thursday, October 2, 2014
Real Quick JSON Example
JSON is better to handle than XML. Was using it in a project so thought to post here,
Subscribe to:
Post Comments (Atom)
-
Scenario: Updating the Master Page for SharePoint Online is not recommended by Microsoft now.....fine. So how do we change the UI then? And...
-
Microsoft introduced Office Graph a couple of months back which uses machine learning techniques to connect people to the relevant content,...
-
I have recently contributed to the official SharePoint documentation for developement. Check it out here: https://docs.microsoft.com/en-us...
Official SharePoint Documentation
I have recently contributed to the official SharePoint documentation for developement. Check it out here: https://docs.microsoft.com/en-us...
No comments:
Post a Comment