I have the following code that generates a dictionary of key/value pairs in php:
$json = file_get_contents('php://input');
$obj = json_decode($json);
print_r(json_encode($obj));
print_r produces the following output:
{"email":"someemail@gmail.com","password":"compas"}
how do you output just the value of the email key? Why doesn't $obj["email"] work?