XModPro

JSON parsing question

Mark Trippier Mark Trippier asked Aug 9, 2017
Active Aug 9 · Viewed 2934 times
<p>Hi, </p> <p>Please ignore my last post, I have tried to delete it. </p> <p>I have managed to get the chart.js to work with a feed using AJAX and JSON but when I parse the JSON to create the array for the Label and the Data elements it puts two additional commas at the end of the result. </p> <p>Please see fiddle <a href="http://dnndev.com/fiddle/fid/671">http://dnndev.com/fiddle/fid/671</a><br> </p> <p>I have included the string returned from the feed and added some alerts to show what is being returned by the var label and the var dataset.<br> </p> <p>Hopefully you guys can point me in the right direction as it doesnt make sense to me...:(<br> </p> <p>Many thanks <br> </p> <p>Mark<br> </p>

1 Answer

Loading answers...