-
Notifications
You must be signed in to change notification settings - Fork 474
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
Changing JsonPathProvider
to Jackson breaks the JsonPathLinkDiscoverer
#1980
Comments
Would you mind stepping back and elaborate what you're trying to achieve, exactly? Ideally, in the form of a test case? If customizing the configuration changes the way |
I've investigated a little more, and it looks like we can indeed simply switch to |
JsonPathProvider
to Jackson breaks the JsonPathLinkDiscoverer
So far, the handling of links detected via a JSON Path expression has assumed that the JsonProvider would always return JSONArray objects for collections. However, the JacksonJsonProvider for example, returns plain List instances. As JSONArray implements List, we now only refer to the latter for maximum compatibility with different JsonProvider implementations.
So far, the handling of links detected via a JSON Path expression has assumed that the JsonProvider would always return JSONArray objects for collections. However, the JacksonJsonProvider for example, returns plain List instances. As JSONArray implements List, we now only refer to the latter for maximum compatibility with different JsonProvider implementations. Original ticket: #1980
So far, the handling of links detected via a JSON Path expression has assumed that the JsonProvider would always return JSONArray objects for collections. However, the JacksonJsonProvider for example, returns plain List instances. As JSONArray implements List, we now only refer to the latter for maximum compatibility with different JsonProvider implementations. Original ticket: #1980
So far, the handling of links detected via a JSON Path expression has assumed that the JsonProvider would always return JSONArray objects for collections. However, the JacksonJsonProvider for example, returns plain List instances. As JSONArray implements List, we now only refer to the latter for maximum compatibility with different JsonProvider implementations. Original ticket: #1980
That's fixed and back-ported as far as 1.5.x. |
Changing JsonPath provider to JacksonProvider breaks the
createLinksFrom
inJsonPathLinkDiscoverer
By setting the Configuration of the JsonPath to
JacksonJsonProvider
- thecreateLinksFrom
breaks it's usage (as it relies only onJsonSmartJsonPRovider
)breaks almost all tests in the
HalLinkDiscovererUnitTest
.However adding:
in the
JsonPathLinkDiscoverer
file fixes those Tests (however still few other tests are broken).I think the implementation in Spring shouldn't so closely rely on using
net.minidev.json
packagesThe text was updated successfully, but these errors were encountered: