Alanscut
eef677ab60
fix for issue #582
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
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
Greenwood
a2936ebd68
inverting the relationship between root scanner and function such that the function takes a parameter which is the scanner expression
7 years ago
Greenwood
525da153d0
fixing unit test, naming and extension
7 years ago
Greenwood
851249861e
Issue #191 is a bug - supports result set functions via patterns such as $.max($..allTheNumberThings)
...
$.max($.foo, $.bar) is already supported - consiquently $.max($..allTheNumberThings) should also work.
7 years ago
Jochen Berger
a71023c650
fix setting a POJO as a value using JacksonJsonNodeJsonProvider ( fixes #364 )
7 years ago
Jochen Berger
d5acf25b9f
fix evaluation of `empty` with wrapping providers ( fixes #366 )
7 years ago
Jochen Berger
78befbb5ee
`null` should be mapped to `null` ( fixes #351 )
7 years ago
Daniel Halperin
7a6fa59a85
Add tests for subsetof
7 years ago
Daniel Halperin
c9527bf89e
Rename subset to subsetof
7 years ago
Ari Fogel
32adc12c9c
implement subset filter operator, update readme
7 years ago
jochenberger
e5a921f9f1
Fix cast
8 years ago
jonny
2757a3b345
new line feed
8 years ago
Kalle Stenflo
257c36c00a
Make ParseContext from JsonPath.using thread safe #187
8 years ago
Kalle Stenflo
45a4e5e9ef
Accept URLs as input but deprecate URL methods #218 .
8 years ago
Greenwood
317e68c4eb
removing created by
8 years ago
Greenwood
3e7707a3d4
replacing space with tabs, IDE formatting issue
8 years ago
Greenwood
07f49c4f17
addressing @jochenberger's code review comments, Created by... is IntelliJ auto-creation -- added Apache license headers
8 years ago
Jochen Berger
98debbb67b
adapt test
8 years ago
Kalle Stenflo
c23501fcd6
Added provided tests for issue #275 .
8 years ago
mattg
b2c752cb5f
missed one file, removed args
8 years ago
mattg
cece640892
removing dead constructor arg
8 years ago
mattg
eb0503db1d
removing commented out code
8 years ago
mattg
e739514e64
update of javadoc
8 years ago
mattg
ca1fe5612d
update of javadoc
8 years ago
mattg
9ab2ccd4cc
removing unused import
8 years ago
mattg
925fb7d6c3
removing unused import - fixing 2nd call to get() to avoid recomputation
8 years ago
mattg
3a69db83f0
Fixes Issue #234 using late binding, ideally this might be a lambda that encapsulates its state -- given support for JDK 6+, its encapsulated state is maintained in an implementation of the interface ILateBindingValue, one for PATH functions one for JSON - its likely the JSON version doesn't have a purpose unless the JSON dynamically changes as a result of the function implementation but its better to create another impl for JSON if in the future JSON can be dynamically changed via functions(?)
...
The fault is in the Parameter object which obviously cached its value and when the outside reference changes its oblivious to that state change due to its internal cached instance of the state. Cache.getCache()... that singleton call inside of JsonContext then grabs an instance of the cached parameter, it would be thread unsafe to simple invalidate the cache because who knows for whom the cache is being invalidated.
Not caching function paths isn't an answer -- the input to a function could itself be another function - meaning the input (parameter) value would never be observed to the wrapping function and things such as take the $.max(3, 4, 5, $.avg(...)) would yield an answer without average being computed.
8 years ago
Jochen Berger
b4b0fe3ae0
upgrade json-smart dependency
8 years ago