Details
-
Improvement
-
Status: Closed
-
Normal
-
Resolution: Fixed
-
None
-
0.5
-
Projects team Sprint 14
Description
As an example, Commercetools provides their own way and utilities to map a com.fasterxml.jackson.databind.JsonNode to their built-in POJOs:
So, developers need to use SphereJsonUtils#readObject(com.fasterxml.jackson.databind.JsonNode jsonNode, ..) instead of using CRISP's ResourceBeanMapper. If you use the latter, it throws an exception because their built-in beans do not comply fully with Jackson annotations or bean creations.
Therefore, it would be nice if we do the following:
- Add Object org.onehippo.cms7.crisp.api.resource.Resource#getNodeData() in CRISP API;
- So, after invoking #findResources(...) or #resolve(...) through CRISP, they can invoke the method and cast to com.fasterxml.jackson.databind.JsonNode by themselves;
- And then they may use SphereJsonUtils#readObject(com.fasterxml.jackson.databind.JsonNode jsonNode, ..)