Hi All,
been trying to load a group of json objects with no luck. Not sure what I'm doing wrong... I can load the object but for some reason am not able to get the object elements to render. Any insight would be greatly appreciated.
Heres sample JSON data that is being received:
- {"items":[{"sku":"12345","name":"Prod 1","image_url":"http:\/google.com\/"},{"sku":"54321","name":"Prod 2","image_url":"http:\/google.com\/"}]}
Here is the code that I am using to load and render it:
- <div id="slider"></div>
- <script>
$.getJSON("prodlineup.json", function(json) {
alert(json);
});
</script>
For some reason however, i'm not getting any data in my alert box...
Is there anything that you might see i'm doing wrong?
Thanks in advance for any and all help.