json_path 0.3.0-nullsafety.2 copy "json_path: ^0.3.0-nullsafety.2" to clipboard
json_path: ^0.3.0-nullsafety.2 copied to clipboard

outdated

Implementation of JSONPath expressions like "$.store.book[2].price". Can read and set values in parsed JSON objects.

Unreleased #

Added #

  • JsonPathMatch.context contains the matching context. It is intended to be used in named filters.
  • JsonPathMatch.parent contains the parent match.
  • JsonPathMatch.pointer contains the RFC 6901 JSON Pointer to the match.

Changed #

  • Named filters argument renamed from filter to filters
  • Named filters can now be passed to the read() method.
  • Named filters callback now accepts the entire JsonPathMatch object, not just the value.

Removed #

  • The set() method. The intention is to allow modifications via JSON Pointer in the future.

0.2.0 - 2020-09-07 #

Added #

  • Ability to create arrays and set adjacent indices

Changed #

  • List union sorts the keys

Fixed #

  • Improved union parsing stability

0.1.2 - 2020-09-06 #

Changed #

  • When JsonPath.set() is called on a path with non-existing property, the property will be created. Previously, no modification would be made and no errors/exceptions thrown.
  • When JsonPath.set() is called on a path with non-existing index, a RangeError will be thrown. Previously, no modification would be made and no errors/exceptions thrown.

0.1.1 - 2020-09-05 #

Fixed #

  • Fixed example code in the readme

0.1.0 - 2020-09-05 #

Added #

  • JsonPath.set() method to alter the JSON object in a non-destructive way

Changed #

  • BREAKING! Result renamed to JsonPathMatch
  • BREAKING! JsonPath.filter() renamed to read()

0.0.2 - 2020-09-01 #

Fixed #

  • Last element of array would not get selected (regression #1)

0.0.1 - 2020-08-03 #

Added #

  • Filters

0.0.0+dev.7 - 2020-08-02 #

Changed #

  • Tokenized and AST refactoring

0.0.0+dev.6 - 2020-08-01 #

Added #

  • Unions

0.0.0+dev.5 - 2020-07-31 #

Added #

  • Slice expression

0.0.0+dev.4 - 2020-07-29 #

Added #

  • Bracket field notation support

0.0.0+dev.3 - 2020-07-28 #

Added #

  • Partial implementation of bracket field notation

0.0.0+dev.2 - 2020-07-28 #

Added #

  • Recursive selector
  • Wildcard selector

0.0.0+dev.1 - 2020-07-27 #

Added #

  • Tokenizer and AST
  • All-in-array selector

0.0.0+dev.0 - 2020-07-24 #

Added #

  • Basic design draft
94
likes
0
pub points
99%
popularity

Publisher

verified publisherkarapetov.com

Implementation of JSONPath expressions like "$.store.book[2].price". Can read and set values in parsed JSON objects.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

petitparser, rfc_6901

More

Packages that depend on json_path