JsonPath仓库
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

3.5 KiB

2.1.0 (2015-11-22)

  • Upgraded dependency versions
  • Introduced Cache SPI
  • Introduced path functions
  • Introduced JsonOrgJsonProvider
  • OSGI improvements
  • Inline filters supports same operators as Filter builders
  • Improved filter evaluation
  • Internal makeovers
  • New write operations : map(...) and renameKey(...)

2.0.0 (2015-03-19)

  • Upgraded dependency versions
  • Moved JsonProvider and MappingProvider implementations out of the interal package OSGi
  • Removed HTTP provider and methods
  • Add an unwrap(Object) method to JsonProvider, use it when extracting values for Criteria evaluation breaks JsonProvider SPI
  • Fixed issue #71 - esacpe character in inline predicates JsonPath.read(json, "$.logs[?(@.message == 'it\\'s here')].message");
  • New method jsonString() added to ReadContext and WriteContext to extract json model as a string
  • Path does not have to be definite in filter API filter(where("authors[*].lastName").contains("Waugh"))

1.2.0 (2014-11-11)

  • Added EvaluationListener interface that allows abortion of evaluation if criteria is fulfilled. this makes it possible to limit the number of results to fetch when a document is scanned. Also added utility method to limit results JsonPath.parse(json).limit(1).read("$..title", List.class);
  • Added support for OR in inline filters [?(@.foo == 'bar' || @.foo == 'baz')]
  • Upgrade json-smart to 2.1.0
  • Support for Update and Delete by path. breaks JsonProvider SPI parse(JSON_DOCUMENT).set("$.store.book[*].display-price", 1) parse(JSON_DOCUMENT).put("$.store.book[1]", "new-key", "new-val") parse(JSON_DOCUMENT).add("$.store.book", newBook) parse(JSON_DOCUMENT).delete("$.store.book[1].display-price")
  • Support regex in inline filters (ruby syntax) parse(JSON_DOCUMENT).read("$.store.book[?(@.category =~ /reference/)].author") parse(JSON_DOCUMENT).read("$.store.book[?(@.category =~ /REFERENCE/i)].author")
  • Inline filter does not require path statement on left side of operator
    parse(JSON_DOCUMENT).read("$.store.book[?(@.category == 'reference')].author")
    parse(JSON_DOCUMENT).read("$.store.book[?('reference' == @.category)].author")
  • Negate exist checks in inline filters (not defined or null) parse(JSON_DOCUMENT).read("$.store.book[?(!@.isbn)]")
  • Improved object mapping with Jackson and Gson (now handles generic types)
  • JacksonJsonNodeJsonProvider supporting path operations on com.fasterxml.jackson.databind.JsonNode
  • Exceptions thrown by JsonPath.compile are now wrapped in an InvalidPathException
  • Fixed Deep scanning issue (#60)

1.1.0 (2014-10-01)

  • Reintroduced method JsonProvider.createMap(). This should never have been removed. NOTE: This is a breaking change if you implemented your own JsonProvider based on the 1.0.0 API
  • Filters threw exception if an item being filtered did not contain the path being filtered upon.
  • Multi-property selects works as it did in 0.9. e.g. $[*]['category', 'price']
  • Cache results when predicates refer to path in document e.g. $[*][?(@.price <= $.max-price)] will only evaluate $.max-price once.

1.0.0 (2014-09-26)

  • Complete rewrite of internals. Major API changes.
  • Better compliance with the Goessner implementation

Release history

  • 0.9.0 (2013-09-26)
  • 0.8.1 (2012-04-16)
  • 0.8.0 (2012-03-08)
  • 0.5.6 (2012-02-09)
  • 0.5.5 (2011-07-15)
  • 0.5.4 (2011-06-26)
  • 0.5.3 (2011-02-18)
  • 0.5.2 (2011-02-08)