first = "Bruno"; $newObject->last = "Mars"; $newObject->age = 31; $newObject->alive = true; $newObject->rating = 9.33333; // Encode the object as a string $jsonString = json_encode($newObject); // Send the string echo $jsonString; } else { echo "Error"; } ?>