diff options
author | nchammas <nicholas.chammas@gmail.com> | 2014-04-18 15:03:23 -0400 |
---|---|---|
committer | nchammas <nicholas.chammas@gmail.com> | 2014-04-18 15:03:23 -0400 |
commit | 36c32aa43ee777c2e05e69d796465e04822ffa0c (patch) | |
tree | 107c1c5216f68b6ad3c5300fc5f9e7844b7f2a62 | |
parent | 87e2aee52ce673b6e9af80818258bc7226467af4 (diff) | |
download | jsonpath-rw-36c32aa43ee777c2e05e69d796465e04822ffa0c.tar.gz |
Fixed quick start example of expression building.
Added imports of `Fields()` and `Slice()` methods so that the final line of the quick start works. An alternate fix would be to prepend calls to those methods with `jsonpath.`.
-rw-r--r-- | README.rst | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -52,6 +52,9 @@ Then: ['number two', 'number one'] # You can also build expressions directly quite easily + >>> from jsonpath_rw.jsonpath import Fields + >>> from jsonpath_rw.jsonpath import Slice + >>> jsonpath_expr_direct = Fields('foo').child(Slice('*')).child(Fields('baz')) # This is equivalent JSONPath Syntax |