$json = file_get_contents('php://input');
$obj = json_decode($json,true);
Penso che tu stia passando la variabile sbagliata. Dovresti passare $json in json_decode come mostrato sopra.
$json = file_get_contents('php://input');
$obj = json_decode($json,true);
Penso che tu stia passando la variabile sbagliata. Dovresti passare $json in json_decode come mostrato sopra.