json_path 0.3.1
json_path: ^0.3.1 copied to clipboard
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.3.0 - 2021-02-18 #
Added #
JsonPathMatch.contextcontains the matching context. It is intended to be used in named filters.JsonPathMatch.parentcontains the parent match.JsonPathMatch.pointercontains the RFC 6901 JSON Pointer to the match.- Very basic support for evaluated expressions
Changed #
- Named filters argument renamed from
filtertofilters - Named filters can now be passed to the
read()method. - Named filters callback now accepts the entire
JsonPathMatchobject, not just the value.
Removed #
- The
set()method. Use thepointerproperty instead.
0.2.0 - 2020-09-07 #
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
RangeErrorwill be thrown. Previously, no modification would be made and no errors/exceptions thrown.