json_path 0.2.1
json_path: ^0.2.1 copied to clipboard
Implementation of JSONPath expressions like "$.store.book[2].price". Can read and set values in parsed JSON objects.
Unreleased #
0.2.1 - 2021-01-04 #
Fixed #
$[:]
throwing FormatException (regression #12)$..[0]
throws FormatException (regression #13)$[-1]
throws RangeError (regression #14)$[0]
throws TypeError on objects (regression #15)$[0]
throws TypeError on primitives (regression #16)
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
RangeError
will be thrown. Previously, no modification would be made and no errors/exceptions thrown.