getCode()} {$e->getMessage()}". PHP_EOL; } catch (Exception $e) { echo "Exception: {$e->getCode()} {$e->getMessage()}". PHP_EOL; } catch (Error $e) { echo "Error: {$e->getCode()} {$e->getMessage()}". PHP_EOL; } var_dump(json_last_error(), json_last_error_msg()); } ?>