Here is the JSON that is being sent to my php page asynchronously. This is essentially a list of products that will be inserted into my mySQL database.
My problem is decrypting JSON in PHP. I can do this in js with the eval function, but in PHP my efforts led to a complex series of tear and unbind functions.
{ "Product": [ { "Product_Title": "Cloth", "Product_Description": "Here is cloth", "Price": "100", "Category_ID": "1" }, { "Product_Title": "Cloth", "Product_Description": "Here is cloth", "Price": "100", "Category_ID": "1" }, { "Product_Title": "Cloth", "Product_Description": "Here is cloth", "Price": "100", "Category_ID": "1" } ] }
I know that php has a built-in json_decode function, but in the PHP documentation they only show how to handle the array.
Any advice or help really appreciated
Taylor
source share