Richard Startin
ed4d2a82b5
prevent truncated subexpressions + misc code cleanup ( #763 )
3 years ago
sdmms1
fcf8bf6478
Fix the issue 629 and add two testcases ( #698 )
3 years ago
mijost
8e8fc149d9
Fix concat with text and number ( #738 )
...
Co-authored-by: Jost, Michael <michael.jost@sicpa.com>
3 years ago
Richard Startin
491dfbc15e
Cache access tweaks ( #750 )
...
* don't create new cache key when there are no filters, just use the path
* fix non volatile double checked locking cache initialisation, replace with variant of holder pattern
3 years ago
Richard Startin
cc2432f54e
don't fill in stacktrace in exception used for control flow ( #751 )
3 years ago
Richard Startin
65a3f5a9e3
provide no varargs overload for notEmpty so common case does not allocate ( #752 )
3 years ago
Claus Ibsen
ca04684c05
Fixes #731 to add OSGi export package to MANIFEST.MF so json-path works in OSGi again ( #732 )
3 years ago
Cincronic
dc296b316a
fix 620 ( #693 )
...
Co-authored-by: CindyChow123 <CindyChow123>
4 years ago
Leonid
048d8d787a
Replace Gradle OSGi plugin for BND build tools ( #730 )
...
* Swap out JCenter for Maven Central and Gradle repos
* Deprecate use of OSGi Gradle plugin
Co-authored-by: Leonid Malikov <leonid@percival.co.uk>
4 years ago
Cincronic
78a9420b42
Fix bug 612 and add two testcases ( #711 )
...
* fix bug 612
* modify fix bug 612
* modify fix bug 612, add one more testcase
Co-authored-by: CindyChow123 <CindyChow123>
4 years ago
Pigdrum
7384e960c7
Fix Issue #497 and add a testcase ( #699 )
...
* The method getPropertyKeys() in class JsonOrgJsonProvider doesn't check empty jsonObject.
* Addition testcase
* simplify the implementation. And change method names of testcases to something more descriptive
* change names
4 years ago
hezonghan
727d9e05ba
fixed issue 537 and added tests ( #719 )
4 years ago
Youngea
eed1cb2814
fix issue_590 and add testcases ( #720 )
...
fix issue_590 and add testcases
4 years ago
hezonghan
12ab6619aa
issue #721 ( #722 )
...
* A solution to fix #721 , and added tests
* Replace the test file
4 years ago
Pigdrum
71ec56e38b
Fix issue #680 and two testcase ( #704 )
...
* Fix issue 680 and two testcase
* additional testcase
* adapt jdk version
* modify something wrong
* a more elegant implementation
4 years ago
Youngea
938e48f482
add feature for issue #613 and add testcases ( #700 )
...
* add feature for issue #613 and add testcases
* modification for asoffsetdatetime() function
4 years ago
Felix Schumacher
eb8db779b1
Only look for PatternFlags after a regular expression ( #661 )
4 years ago
Matt Greenwood
812bea3f85
When the path parameters to a length function for $..book.length() is translated to $.length($..book) its really taking the length of the structure pointed at by the result set $..book not $..book.* (children of book). ( #651 )
...
This was caused when the CompiledPath#invertScannerFunctionRelationship was introduced, effectively in the graph of CompiledPath translating the $..book.length() to $.length($..book) but what it should have done (for length only) is translated it to $.length($..book.*). Rather than make this bugfix in the CompiledPath source code I've made it to the Length source as this shouldn't be an issue for any other routine - length is specific in that its asking about the children (hence the .length() the dot there indicates next node(s)).
This addresses ticket 650 - https://github.com/json-path/JsonPath/issues/650 and adds unit tests for the same.
Co-authored-by: Matt Greenwood <61432137+mgreenwood1-chwy@users.noreply.github.com>
4 years ago
MarcP04
75637790f5
Fix Criteria.noneof(Object...) that was calling Criteria.subsetof(List) instead of Criteria.noneof(List) ( #653 )
...
Co-authored-by: Marc Pynaert <marc.pynaert@probance.com>
4 years ago
kallestenflo
70d11a6313
Update dependencies. ( #649 )
4 years ago
René Kriegler
698dbfae27
Avoid Locale-dependant InvalidPathException in RelationalOperator, fixes #600
5 years ago
Alanscut
6ff06c21d0
improve number type
5 years ago
Alanscut
f2aa9f8153
add BigInteger
5 years ago
Alanscut
60f77a953c
add bigdecimal/biginteger test case for jackson
5 years ago
Alanscut
eef677ab60
fix for issue #582
5 years ago
Alanscut
ca1ac4bf85
change repeated BigDecimal to BigInteger
5 years ago
Alanscut
89abebfeb0
merge if statement
5 years ago
Eric Hettiaratchi
3070bd84a5
Add unit tests for com.jayway.jsonpath.internal.Utils
...
These tests were written using Diffblue Cover.
6 years ago
maxxyme
afe4d0acca
Useless logger removed
6 years ago
maxxyme
8181b7aa26
GsonJsonProvider has nothing to do here in the Logger
6 years ago
Marc PYNAERT
39b489339c
Fix compilation errors (ValueNodes.ValueListNode => ValueListNode)
6 years ago
Marc Pynaert
e3bf0a620a
Add support of new operators ANYOF and NONEOF
...
This reverts commit f3ef9d0992
.
6 years ago
Kalle Stenflo
4bdf9b7bdc
bump dependency versions and fix build issues
6 years ago
Uladzislau Arlouski
cbdc9c82e0
Add support for pattern flags
6 years ago
kallestenflo
f3ef9d0992
Revert "Add support of new operators ANYOF and NONEOF"
6 years ago
Tomasz Skowroński
16df8c3e9c
fix "Invalid delete operation" mistake for set operation
...
"Invalid delete operation" -> "Invalid set operation" in set method
6 years ago
Marc PYNAERT
44e5646d55
Add support of 2 new operators:
...
- ANYOF that matches if 2 arrays have an intersection
- NONEOF that matches if 2 arrays have no intersection
6 years ago
Elias Ross
bb0853fb5e
Various warning clean-ups from IntelliJ
...
Split ValueNode into a separate class to avoid possible race-condition in class loading.
Modified ArrayPathToken to be super-class of ArrayIndex/ArraySlice token
because IntelliJ warned about null pointer exception possibilities.
Removed redundant boolean checks.
Removed use of StringBuffer -> StringBuilder.
Removed dangling ;
7 years ago
Elias Ross
f6336650f2
2.3 merge update: Also fix for quote evaluation
...
This is a problem in JsonPath where the left-hand side string value was being
quoted by mistake.
Issue 410 on github: https://github.com/json-path/JsonPath/issues/
Also fix issue 409 as well. This should improve performance a bit when parsing.
There are casts because the compiler in IntelliJ was confused as to what overloaded
method to call. Casts don't really hurt.
7 years ago
Ben Fradet
0f6eaa7901
Do not map non-existing values, fixes #438
7 years ago
啊o额iu鱼
ca1b42d07a
Wrong pass
7 years ago
Michael Thacker
445b9c4ebe
Fix compiling of functions with single character arguments
7 years ago
Claus Ibsen
57604c86cd
Fixes #447 : To report correct index of invalid jsonpath failure. This should add 1 to the position instead of appending 1 to its text value.
...
Signed-off-by: Claus Ibsen <claus.ibsen@gmail.com>
7 years ago
Sam Kruglov
f7dc9280c7
Log the nested exception as well
...
why not
7 years ago
sergey
7355e30ee7
Add keys function for Map objects
...
See https://github.com/json-path/JsonPath/issues/439
7 years ago
Bartlomiej Kowalczyk
0b324ec7b8
Prevent StackOverflow in case of unclosed property
7 years ago
hansthen
99e05dbac9
Fix typo in error message in PathCompiler.java
...
Missing '
7 years ago
Ihor Herasymenko
9862f8e56e
#403 : Enable path caching withing all the operations
7 years ago
Jochen Berger
ed9fd3adf7
convert lists and maps for ValueNode ( fixes #378 )
7 years ago
Greenwood
02c88d70e6
adding an example with more than one replacement
7 years ago