Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

Reading Json data send from serverside code in Javascript

$
0
0

Hi,

How to read the Json data send from SharePoint Server side code in javascript?

I have the data as below in view source :

<script type="text/javascript">
var allDataBanner=[{"id":"2","Title":"image","DisplayOrders":"3","TestURL":"some url"},{"id":"3","Title":"amaze","DisplayOrders":"2","TestURL":"some url"},{"id":"1","Title":"logo","DisplayOrders":"1","TestURL":"some url"}]</script>

I want to iterate through the data and fetch the values.

How to achieve this in Javascript?

Thanks


Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>