made JSONParser.ResultHandler into an interface