json_path 0.4.3 copy "json_path: ^0.4.3" to clipboard
json_path: ^0.4.3 copied to clipboard

retracted

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

Changelog #

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

0.4.3 - 2023-03-18 #

Fixed #

  • Deprecation warnings from petitparser

0.4.2 - 2022-08-03 #

Added #

  • Expressions enhancements: float literals, negation, parenthesis.

0.4.1 - 2022-06-14 #

Added #

  • Lower case hex support

Changed #

  • Updated CTS to latest

0.4.0 - 2022-03-21 #

Changed #

  • Dart 2.16
  • Dependency bump: petitparser 5.0.0

0.3.1 - 2021-12-18 #

Added #

  • Filtering expressions

Changed #

  • Require dart 2.15

0.3.0 - 2021-02-18 #

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.
  • Very basic support for evaluated expressions

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. Use the pointer property instead.

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". Reads and writes values in parsed JSON objects.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

petitparser, rfc_6901

More

Packages that depend on json_path