README.md in jsonpath-0.5.8 vs README.md in jsonpath-0.7.0
- old
+ new
@@ -79,11 +79,11 @@
~~~~~
...and evals.
~~~~~ {ruby}
-JsonPath.new('$..price[?(@ < 20)]').on(json)
+JsonPath.new('$..price[?(@ < 10)]').on(json)
# => [8.95, 8.99]
~~~~~
There is a convenience method, `#first` that gives you the first element for a JSON object and path.
@@ -103,10 +103,14 @@
# => true
~~~~~
You can optionally prevent eval from being called on sub-expressions by passing in :allow_eval => false to the constructor.
+### More examples
+
+For more usage examples and variations on paths, please visit the tests. There are some more complex ones as well.
+
### Manipulation
If you'd like to do substitution in a json object, you can use `#gsub` or `#gsub!` to modify the object in place.
~~~~~ {ruby}
@@ -128,5 +132,9 @@
compact.
delete('$..other').
to_hash
# => {"candy" => "big turks"}
~~~~~
+
+# Contributions
+
+Please feel free to submit an Issue or a Pull Request any time you feel like you would like to contribute. Thank you!
\ No newline at end of file