class BooleanJsonMapper {

    public Boolean transformBoolean( String booleanJsonResponse ) throws JsonSyntaxException {

        JsonObject rootObject = parser.parse( booleanJsonResponse ).getAsJsonObject();

        return rootObject.get( "bool" ).getAsBoolean();
    }

    @Inject public  BooleanJsonMapper();

}