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

Loading…
Cancel
Save