I would like to know how can we make the JSON based array using json_encode() PHP ;
The format of the array should be look like this.
callback([{"ProductID":1,"ProductName":"Chai","UnitPrice":18,"UnitsInStock":39,"Discontinued":false}])
When we need the this header("Content-type: application/json");
UPDATE
in above format you can see the format check the numeric values, json_encode not mention the double quotes the numeric values. I just want to configure the Mysql values on this format, like numeric value without double quotes, and string values with double quotes. We should have to configure mysql values on this format.
Thanks
Example: