I am trying to PUT
a PHP array as a json. This is what I have done:
$data = array('Customer Name' => 'White Carousel', 'Delivery Address'=>'2 Example Dr', 'Contact Phone Number'=>'555555555');
$json_data = json_encode($data);
When I try to PUT
this, I am getting a 400 error.
Why is this?
I know what an Error 400 is, but I dont understand why it is coming here. What is wrong with my syntax?