-
-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[疑惑]:为啥fastjson解析的是正常的,本框架解析的不一样 #40
Labels
question
Further information is requested
Comments
小伙子,我无法复制你图片上面的代码,另外你图片上面的代码不完整,请提供完整且可复现的代码到这里来。 |
{
"attitude": 2,
"collectTime": 1710150586000
}
val json: String = getAssetsString(this, "AbnormalJson.json")
val mGson = GsonFactory.getSingletonGson()
val jsonBean = mGson.fromJson(json, aaaa::class.java)
Log.e("xxx", "" + mGson.toJson(jsonBean))
val beanToMap = mGson.fromJson(mGson.toJson(jsonBean), MutableMap::class.java)
Log.e("xxxbb", "" + beanToMap)
class aaaa {
private var attitude: Int = 0
private var collectTime: Long = 0L
override fun toString(): String {
return "aaaa(attitude=$attitude, collectTime=$collectTime)"
}
} |
小伙子,你可以用上面的 aar 包试一下看问题是否被解决? |
佬,用9.6的包解决了,感谢佬的解决 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
问题描述【必填】
比如字段 attitude、collectTime
框架文档是否提及了该问题【必答】
否
是否已经查阅框架文档但还未能解决的【必答】
是
issue 列表中是否有人曾提过类似的问题【必答】
否
是否已经搜索过了 issue 列表但还未能解决的【必答】
是
The text was updated successfully, but these errors were encountered: