spring-projects / spring-projects/spring-hateoas

Resource of JsonNode not deserializable from Hal

Open
#191 3 comments 0 reactions 1 assignee View on GitHub

@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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.