By writing applications that inspires the problem. How do I parse `JSON` object (some are double types) are `Integer` objects?

This is a photo of my code:

[![](https://i.stack.imgur.com/aEcox.png)](https://i.stack.imgur.com/aEcox.png)

The line of the casting error occurs:

> 
> `java.lang.ClassCastException`: `java.lang.Double` cannot be cast to `java.lang.Integer`
> 
> 
> 

How can I fix this?