@Test
public void testJSONPathCompiler() throws ParseException, JSONException {
System.out.println(this.getClass().getResource("books.json"));
JSONObject json = read(this.getClass().getResource("books.json"));
JSONPathExpr evaluator = parse("store.book[0].author");
Object result = evaluator.eval(json);
System.out.println(result);
assertEquals("Nigel Rees", result);
evaluator = parse("store.book[category='fiction'].author");
result = evaluator.eval(json);