[X] I had searched in the issues and found no similar issues.
What happened
When i try to parse json to complex class(like BaseHeartBeat.class), there will be a ClassCastException.
That is because the JSONUtils.toMap(String json, Class classK, Class classV) uses TypeReference to parse json which cannot deal generic type correctly, we can use MapType instead.
Search before asking
What happened
When i try to parse json to complex class(like BaseHeartBeat.class), there will be a ClassCastException. That is because the JSONUtils.toMap(String json, Class classK, Class classV) uses TypeReference to parse json which cannot deal generic type correctly, we can use MapType instead.
What you expected to happen
no exceptin should be throw
How to reproduce
just parse the json to any custom class
Anything else
No response
Version
dev
Are you willing to submit PR?
Code of Conduct