Browse Source

Update README.md

pull/56/head
kallestenflo 10 years ago
parent
commit
b85e067650
  1. 14
      README.md

14
README.md

@ -1,4 +1,4 @@
JSONPath JSONPath (1.0.0)
======== ========
**A Java DSL for reading JSON documents.** **A Java DSL for reading JSON documents.**
@ -194,7 +194,7 @@ import static com.jayway.jsonpath.Filter.filter;
... ...
... ...
Filter cheapFictionFilter = where(where("category").is("fiction").and("price").lte(10D)); Filter cheapFictionFilter = filter(where("category").is("fiction").and("price").lte(10D));
List<Map<String, Object>> books = parse(json).read("$.store.book[?]", cheapFictionFilter); List<Map<String, Object>> books = parse(json).read("$.store.book[?]", cheapFictionFilter);
@ -239,15 +239,15 @@ Configuration.setDefaults(new Configuration.Defaults() {
return jsonProvider; return jsonProvider;
} }
@Override
public Set<Option> options() {
return EnumSet.noneOf(Option.class);
}
@Override @Override
public MappingProvider mappingProvider() { public MappingProvider mappingProvider() {
return new DefaultMappingProvider(); return new DefaultMappingProvider();
} }
@Override
public Set<Option> options() {
return EnumSet.noneOf(Option.class);
}
}); });
``` ```

Loading…
Cancel
Save