spring-projects / spring-projects/spring-hateoas
Resource of JsonNode not deserializable from Hal
@odrotbohm is already working on this.
Since Aug 22, 2014.
- Dominant language
- Java
- Stars
- 1.1k
- Forks
- 476
- PR merge metrics
- No merged PRs in 30d
Description
Given a JsonNode which represents a Person.
When I serialize it as a Resource<JsonNode>, the JsonNode is not unwrapped, but it is attached to a field "content". If I were using a Resource<Person>, the person attributes would be unwrapped directly on the Json object, without a field "content".
If I then try to deserialize the Json object with "content" to a Resource<Person>, the fields of the resulting person are null.
I have taken it already, pull request follows.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.