Skip to content

Prototype based #31

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 23 commits into from
Dec 14, 2014
Merged
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
89de1de
rmv unnecessary global (redefined inside anyways)
brettz9 Dec 9, 2014
51b5a3a
Avoid with, use strict mode, rmv unused vars, other JSLint-inspired c…
brettz9 Dec 9, 2014
f2c5548
Merge branch 'master' of git@github.com:s3u/JSONPath.git
brettz9 Dec 9, 2014
a09efe3
One more JSLint change (avoiding inline assignment)
brettz9 Dec 9, 2014
d1baf0b
Move livable whitespace pattern (4 sp. instead of inconsistent 3) and…
brettz9 Dec 9, 2014
d765dac
Move to prototype-based inheritance (saving on memory); remove unneed…
brettz9 Dec 9, 2014
55dc9d5
Change argument order when instantiating, but keep old order for back…
brettz9 Dec 9, 2014
8ff538d
Fix resultType regression
brettz9 Dec 9, 2014
dce1969
Allow avoiding autostart with optionally separate call to new public …
brettz9 Dec 9, 2014
164aaf1
Allow for object-style parameters, "json" and "path"
brettz9 Dec 9, 2014
46cd3d4
Update tests and docs to use new class-based API with object argument…
brettz9 Dec 10, 2014
3f6e79e
Bump version to 0.11.0
brettz9 Dec 10, 2014
f8e3cda
For README, change to easier MD heading format; indicate alternative …
brettz9 Dec 10, 2014
8db5e1a
Utilize more obscure internal variable naming to avoid potential clas…
brettz9 Dec 10, 2014
0bc5631
Note on @path being a custom operator
brettz9 Dec 10, 2014
41088f6
Add XPath/JSONPath example to indicate getting multiple property resu…
brettz9 Dec 10, 2014
41f9a37
Fix placement in chart of book indexes
brettz9 Dec 10, 2014
4b3cb09
Add Notes field to table and denote non-standard items
brettz9 Dec 10, 2014
fb25083
Name unused whole match var. in same way as other regex
brettz9 Dec 10, 2014
f1746de
More precision for passing nullish objects
brettz9 Dec 10, 2014
1639b92
Fix checking issue
brettz9 Dec 10, 2014
ef808d3
Return null or undefined if supplied; deal with nullish values by req…
brettz9 Dec 10, 2014
9eb396b
Better checking to avoid object creation
brettz9 Dec 10, 2014
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix placement in chart of book indexes
  • Loading branch information
brettz9 committed Dec 10, 2014
commit 41f9a37f5538c7213cad3c8dd1d3dfd65e668049
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,8 @@ XPath | JSONPath | Result
//book[3] | $..book[2] | the third book
//book[last()] | $..book[(@.length-1)] | the last book in order.
| $..book[-1:] |
//book[position()<3]| $..book[0,1] | the first two books
//book[position()<3]| $..book[0,1]<br>$..book[:2]| the first two books
//book/*[self::category\|self::author] or //book/(category,author) in XPath 2.0| $..book[category,author]| the categories and authors of all books
| $..book[:2] |
//book[isbn] | $..book[?(@.isbn)] | filter all books with isbn number
//book[price<10] | $..book[?(@.price<10)] | filter all books cheapier than 10
//*[price>19]/.. | $..[?(@.price>19)]^ | categories with things more expensive than 19
Expand Down