Chartjs-How to properly unpack data from PHP array encoded as JSON from a JavaScript file

0👍

In php print only json and set header content type to application/json then your XHR response will contain javascript object with your data. There is no need for any json parsing.

Leave a comment