Skip to content
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

Map serialization, null values and @JsonValue #50

Closed
nnegativ opened this issue Jan 20, 2013 · 2 comments
Closed

Map serialization, null values and @JsonValue #50

nnegativ opened this issue Jan 20, 2013 · 2 comments

Comments

@nnegativ
Copy link

Jackson allows skip null values when serializing maps. This doesn't work, when map value is generated by the method annotated with @JsonValue. For example:

@JsonProperty
private Map<String, SomeClass> fields;

and:

class SomeClass {
@JsonValue
public String getValue() { ... }
}

result:

{"id1":"a","id2":null}

@cowtowncoder
Copy link
Member

Ok. Sounds like a flaw. I'll move this to

https://github.com/FasterXML/jackson-databind

since this is problem with databinding, not streaming API (which this project covers).

@cowtowncoder
Copy link
Member

Closing, moved to FasterXML/jackson-databind#150

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants