Showing an error Trying to get property of non-object


#1

Showing an error Trying to get property of non-object.
how to fixed it.
below my post params

.php

<?php include 'connection.php'; if($conn) 
{ 
	$json = file_get_contents('php://input'); 
	$obj = json_decode($json,true); 
	foreach($obj as $key => $value) {
    echo $value->name;
 	$query = 'insert into multiple_filed (send_time,send_location,send_comments) values('.$value->name.','. $value->address.','. $value->contact.')';

  mysqli_query($conn,$query); } }

  ?>

Thanks