Alexey Makeyev
99637ca2d7
added support of multiple object properties in non-leaf path node
...
Semantics of this case is the same as semantics of ArrayPathToken with multiple array indices specified.
9 years ago
Alexey Makeyev
e8af47fa98
multiple properties path token at the end of the path: tests and fix
9 years ago
Alexey Makeyev
f03875784e
deep scan fixes and tests
9 years ago
Alexey Makeyev
1d259d1857
semantic of PathToken.isUpstreamDefinite changed: current token is not an upstream of itself
9 years ago
Alexey Makeyev
f013e86fb8
fix for object property handling in case of Option.SUPPRESS_EXCEPTIONS and indefinite upstream path
9 years ago
Alexey Makeyev
f2d2a25744
multiprops not in leaf are disallowed at the moment
9 years ago
Alexey Makeyev
630f0c15b3
fix for PathToken.isUpstreamDefinite
9 years ago
Alexey Makeyev
296d3578d6
tests of Option.ALWAYS_RETURN_LIST in case of indefinite path moved to separate test
9 years ago
Alexey Makeyev
9566d846e6
two more tests for Option.ALWAYS_RETURN_LIST in case of indefinite path
9 years ago
Alexey Makeyev
03bec8af41
two more tests for Option.ALWAYS_RETURN_LIST
9 years ago
Archimedes Trajano
286aff4818
Alternate constructor for ValueCompareException
...
This passes the message in the exception rather than being lost in the
logs.
9 years ago
Archimedes Trajano
0f3d143fa9
Remove unused logger from class
...
The logger is not used in this class. Might as well remove it.
9 years ago
Kalle Stenflo
ba08ae3018
Stab at fixing #94 cache problem.
9 years ago
Archimedes Trajano
93651e49b7
Only call getEffectiveDefaults when needed
...
The call to `getEffectiveDefaults` will make `json-smart` dependency
required for processing. By removing the call when not needed
`json-smart` can be safely excluded.
In addition the logger was removed since it was not being used.
9 years ago
Archimedes Trajano
8818ee7ade
Remove unused logger from class
...
Logger is not being used here so removing.
9 years ago
Archimedes Trajano
616c5275b7
Remove unused logger from class
...
Logger is not being used here. Removing
9 years ago
Archimedes Trajano
b79f0550a2
Store problematic JSON in exception
...
Rather than logging the JSON that is problematic store it as part of the exception. Remove the logger since it is no longer being used.
9 years ago
Archimedes Trajano
cba33fba05
Store problematic JSON in exception
...
Rather than logging the JSON that is problematic store it as part of the exception. Remove the logger since it is no longer being used.
9 years ago
Archimedes Trajano
9dd0cd9fb3
Provide a constructor that captures the JSON
...
Rather than "debug" the JSON which does not allow further processing for the exception capture and put it inside the exception data.
9 years ago
Archimedes Trajano
724565dca6
Remove unused logger from class
...
The logger is not used in this class. Might as well remove it.
9 years ago
Jochen Berger
a048edb1cb
consistently use setArrayIndex for arrays instead of setProperty
9 years ago
Jochen Berger
8c2b7b6761
fix handling of REQUIRE_PROPERTIES with nested objects
9 years ago
Jochen Berger
77583725b4
Only arrays will be passed to JsonProvider.toIterable(Object) anyway
9 years ago
Elias Ross
fb9c621e5c
unescape strings in comparison, to deal with tabs, etc.
9 years ago
Elias Ross
c759a20188
Allow JSON values to be directly used in criteria matching
...
This is useful for matching against arrays of primitives, for example.
9 years ago
Jochen Berger
d7c5fc34ea
use utility method to concatenate Strings
9 years ago
Jochen Berger
e9c9c19138
don't reassign method parameters
9 years ago
Jochen Berger
e29858db73
add a Utility method to concatenate CharSequences
9 years ago
Kalle Stenflo
81b1d522c8
Fixed issue in test.
9 years ago
dnetmj
0aa5bb6a09
Fix parsing of quoted strings
...
Pretty printing was not distinguishing between single-quote delimited strings and double-quote delimited strings, which in earlier revisions caused an exception which the latest revision caught and swallowed, but didn't really fix. This change refactors the prettyPrint method as a state machine which correctly handles both quoting and escaping within strings. The isEscaped method is eliminated.
9 years ago
Franz Forsthofer
d3f4252d5e
osgi dependency to gson, jackson, json-smart made optional
...
Change-Id: Id75d66b053e22530dd0dd1b9afe3314e931da455
10 years ago
Kalle Stenflo
8a40b0420a
Fixed issue #79 . Index out of bounds.
10 years ago
Kalle Stenflo
dbc7e90904
Fixed issue #97 . IndexOutOfBoundsException in DocumentContext.delete
10 years ago
Kalle Stenflo
c03dcf77c5
Tests for issue #76
10 years ago
David Lee
11c64b0298
Fix array out of bounds exception on '$.' path expression
10 years ago
Kalle Stenflo
4de672c705
Replaced Factory interface with Callable.
10 years ago
Kalle Stenflo
1735bc7a87
Removed deprecated classes and some minor fixes.
10 years ago
Kalle Stenflo
9837c72aaf
Fixed issue #71 escape ' in inline criteria.
10 years ago
Jochen Berger
f6bc487d5b
move the default Defaults implementation to a separate class that is only loaded when needed, this makes it possible to exclude the json-smart dependency (see https://code.google.com/p/json-path/issues/detail?id=68 )
10 years ago
Kalle Stenflo
e6e28772f3
Moved providers out of internal.
10 years ago
Jochen Berger
00c32fe5d3
add a test for https://code.google.com/p/json-path/issues/detail?id=58
10 years ago
Kalle Stenflo
ca6d7fff66
Preparations for patch support.
10 years ago
Kalle Stenflo
6a88323b25
Preparations for patch support.
10 years ago
Jochen Berger
c45b0bafdc
add an unwrap(Object) method to JsonProvider, use it when extracting values for Criteria evaluation
10 years ago
Kalle Stenflo
28388af0f3
Renamed JacksonTreeJsonProvider.
10 years ago
Kalle Stenflo
bbcec25cf7
Added binary compatibility checks to build.
10 years ago
Kalle Stenflo
f8209fcc40
Mapping improvements.
10 years ago
Kalle Stenflo
c71e2c5e48
Improved support for Gson and Jackson Providers.
10 years ago
Kalle Stenflo
dee2163e14
Added input validation.
10 years ago
Kalle Stenflo
0e997e6260
Overloaded write ops with compiled path.
10 years ago