Index: spyc.php =================================================================== --- spyc.php (revision 111) +++ spyc.php (working copy) @@ -252,6 +252,8 @@ * @param $indent The indent of the current node */ private function _yamlize($key,$value,$indent, $previous_key = -1, $first_key = 0, $source_array = null) { + if (is_object($value)) + $value = (array)$value; if (is_array($value)) { if (empty ($value)) return $this->_dumpNode($key, array(), $indent, $previous_key, $first_key, $source_array);