toJson

open fun toJson(obj: Any): String

对象转换成Json字符串,会过滤值为null的keys

Return

Json字符串

Parameters

obj

要转换的对象