Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法在字符串化时忽略空值?目前它呈现为:
“字段”:空
如果有办法根本不呈现空字段,那就太好了 - 但我没有找到这样的选项。任何人都知道这是如何工作的?
目前这是不可能的,但你可能想跟踪这个问题:https ://github.com/Kotlin/kotlinx.serialization/issues/58