Why does Gson allow primitive array declaration, then throw ClassCastException when accessing it in a Map?

后端 未结 0 743
广开言路
广开言路 2020-11-22 01:47

When Gson is used to convert a JSON map to a Kotlin/Java Map, and the JSON values contain arrays as "[]", there will be a ClassCastException

相关标签:
回答
  • 消灭零回复
提交回复
热议问题