I’m using json_encode() and the files that I am using will be parsed to a JavaScript grid.
For example:
Index.php has the JavaScript that calls data.php, where I parse my PHP arrays to JSON. The question is, is there a way to know if Index.php is getting the data right. Some kind of debug?
You can use something like Firebug for Firefox or Chrome’s Developer Tools to check your JavaScript.
Use JSONLint to verify your JSON.