8000 Add travis build icon and some more docs on extensions · cdent/python-jsonpath-rw@a83f79d · GitHub
[go: up one dir, main page]

Skip to content

Commit a83f79d

Browse files
committed
Add travis build icon and some more docs on extensions
1 parent 2acbaea commit a83f79d

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ Python JSONPath Read/Write
33

44
https://github.com/kennknowles/python-jsonpath-rw
55

6+
[![Build Status](https://travis-ci.org/kennknowles/python-jsonpath-rw.png)](https://travis-ci.org/kennknowles/python-jsonpath-rw)
7+
68
This package provides a robust implementation of JSONPath with read and
79
update capability as well as additional operators, described below.
810

@@ -78,6 +80,18 @@ and here are some examples:
7880
- `Descendants(jsonpath, jsonpath)`
7981

8082

83+
Extensions
84+
----------
85+
86+
- _Path data_: The result of `JsonPath.find` are of the type `DatumAtPath`, which
87+
provides a `value` field for the matched data, but also a `path` field for where
88+
it was found. This object proxies all other attributes to act "like" the `value`
89+
field, so lightweight usage is still easy.
90+
- _Automatic Ids_: If you set `jsonpath_rw.auto_id_field` to a value other than
91+
None, then for any piece of data missing that field, it will be replaced by
92+
the JSONPath to it, giving automatic unique ids to any piece of data.
93+
94+
8195
More to explore
8296
---------------
8397

0 commit comments

Comments
 (0)
0