JObject::__toString

Magic method to convert the object to a string gracefully.