Suppose my JSON is like this.

```
// {
//   "count": 32,
//   "weight": 1.13,
//   "name": "grape",
//   "isFruit": true
//   "currentPrice" : "30.00"
// }

```

If I read my JSON like this,

```
String current = json.getString("currentPrice");

```

the current variable will have value as "30.00". Is there any way that I can parse this as an Integer? I tried doing Integer.parseInt but It is giving an error like Number format exception for input string "30.00".

I tried removing quotes by applying regex but didn't work.