From 611094d2e58314f1f797bf8e4068f76c29bebed0 Mon Sep 17 00:00:00 2001 From: Dustin Farley Date: Wed, 21 Jul 2021 15:10:26 -0700 Subject: [PATCH 1/3] fix for README.rst examples are syntactically wrong #60 --- README.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.rst b/README.rst index ce9a19b..dff6d20 100644 --- a/README.rst +++ b/README.rst @@ -202,9 +202,9 @@ Extensions | | - $.objects[\\some_field,/other_field] | +--------------+----------------------------------------------+ | filter | - $.objects[?(@some_field > 5)] | -| | - $.objects[?some_field = "foobar")] | -| | - $.objects[?some_field =~ "foobar")] | -| | - $.objects[?some_field > 5 & other < 2)] | +| | - $.objects[?(some_field = "foobar")] | +| | - $.objects[?(some_field =~ "foobar")] | +| | - $.objects[?(some_field > 5 & other < 2)] | +--------------+----------------------------------------------+ | arithmetic | - $.foo + "_" + $.bar | | (-+*/) | - $.foo * 12 | From b7700d01d789bc903183371fe01a951a59c1fbc2 Mon Sep 17 00:00:00 2001 From: Dustin Farley Date: Wed, 21 Jul 2021 15:12:12 -0700 Subject: [PATCH 2/3] fix for README.rst examples are syntactically wrong #60 --- README.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.rst b/README.rst index dff6d20..34f7785 100644 --- a/README.rst +++ b/README.rst @@ -201,10 +201,10 @@ Extensions | | - $.objects[\\some_field] | | | - $.objects[\\some_field,/other_field] | +--------------+----------------------------------------------+ -| filter | - $.objects[?(@some_field > 5)] | -| | - $.objects[?(some_field = "foobar")] | -| | - $.objects[?(some_field =~ "foobar")] | -| | - $.objects[?(some_field > 5 & other < 2)] | +| filter | - $.objects[?(@.some_field > 5)] | +| | - $.objects[?(@.some_field = "foobar")] | +| | - $.objects[?(@.some_field =~ "foobar")] | +| | - $.objects[?(@.some_field > 5 & other < 2)] | +--------------+----------------------------------------------+ | arithmetic | - $.foo + "_" + $.bar | | (-+*/) | - $.foo * 12 | From 2135ae963a09b6d7194bf0a1064b1d81aa928129 Mon Sep 17 00:00:00 2001 From: Dustin Farley Date: Wed, 21 Jul 2021 20:58:17 -0700 Subject: [PATCH 3/3] fixed typo --- README.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.rst b/README.rst index 34f7785..b7dd3c4 100644 --- a/README.rst +++ b/README.rst @@ -178,7 +178,7 @@ Extras will be replaced by the JSONPath to it, giving automatic unique ids to any piece of data. These ids will take into account any ids already present as well. -- *Named operators*: Instead of using ``@`` to reference the currently +- *Named operators*: Instead of using ``@`` to reference the current object, this library uses ```this```. In general, any string contained in backquotes can be made to be a new operator, currently by extending the library.