Browse Source

Update README.md

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

12
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);
@ -240,13 +240,13 @@ Configuration.setDefaults(new Configuration.Defaults() {
} }
@Override @Override
public Set<Option> options() { public MappingProvider mappingProvider() {
return EnumSet.noneOf(Option.class); return new DefaultMappingProvider();
} }
@Override @Override
public MappingProvider mappingProvider() { public Set<Option> options() {
return new DefaultMappingProvider(); return EnumSet.noneOf(Option.class);
} }
}); });
``` ```

Loading…
Cancel
Save