I'm using Eclipse and I'm trying to follow along this tutorial:
But I'm encountering some problems when using a JSONParser object. When I try to simply call:
JSONParser parser = new JSONParser();
Object obj = parser.parse(json_out);
I get an error saying: Unhandled exception of type ParseException.
But when I use a try statement I get:
JSONParser parser = new JSONParser();
try{
Object obj = parser.parse(json_out);
}catch(ParseException e){
e.printStackTrace();
}
Unhandled exception type ParseException
Unreachable catch block for ParseException. This exception is never thrown from the try statement body
Can anybody help me with this?