We can't encode nil values, so don't! Error is the root element is nil.