How to process JSON in PHP?

If you call json_decode($data,true);, your data will be:

Array(
    "Product"=>Array(
        Array(
            "Product_Title"=>"Cloth",
            "Product_Description"=>"Here is cloth",
            "Price"=>"100",
            "Category_ID"=>"1"
        ),
        Array(
.............
        )
    )
);

What is wrong with that?

Leave a Comment