summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Chernyshov <chernyshov.eugene@gmail.com>2016-12-17 20:22:19 +0200
committerGitHub <noreply@github.com>2016-12-17 20:22:19 +0200
commit82a7776235656cdb442e711591034a52c964bbe3 (patch)
treea62405f66b7acf8ce32d11fdf8cdaf5a0ca92a20
parent3a194faf81e79f44997f28d76c554b3ca7bd3b64 (diff)
downloadjsonpath-rw-82a7776235656cdb442e711591034a52c964bbe3.tar.gz
Update README.rst
fixes #44
-rw-r--r--README.rst13
1 files changed, 13 insertions, 0 deletions
diff --git a/README.rst b/README.rst
index 144a82a..a6ef686 100644
--- a/README.rst
+++ b/README.rst
@@ -177,6 +177,19 @@ The original proposal, as far as I know:
- `JSONPath - XPath for
JSON <http://goessner.net/articles/JSONPath/>`__ by Stefan Goessner.
+Other examples
+--------------
+
+Loading json data from file
+
+.. code:: python
+
+ import json
+ d = json.loads('{"foo": [{"baz": 1}, {"baz": 2}]}')
+ # or
+ with open('myfile.json') as f:
+ d = json.load(f)
+
Special note about PLY and docstrings
-------------------------------------