Skip to content
This repository has been archived by the owner on Jan 22, 2019. It is now read-only.

Map support in POJO member #25

Closed
shaon002 opened this issue Nov 11, 2013 · 3 comments
Closed

Map support in POJO member #25

shaon002 opened this issue Nov 11, 2013 · 3 comments

Comments

@shaon002
Copy link

My initial purpose was to serialize the following POJO class

public class Application {
String name;
String description;
// failed to serialize this member
HashMap <String, String> customAttr;
....
}

I came to know this is not supported at this moment, any ETA when it will be.

@cowtowncoder
Copy link
Member

We are open for contributions; no one is actively working on implementing this, as far as I know.

The immediate problem is that of schema: Maps can contain any data, in any order, so question becomes how to support free-ranging data like this. It could perhaps be embedded in some form (JSON in CSV? Internal delimiters?).

@cowtowncoder
Copy link
Member

One possible idea; perhaps @JsonUnwrapped should work with Maps too:

FasterXML/jackson-databind#171

although there are still open questions as to how column aspect would work. Perhaps such entries should be appended as last columns, similar to how Java (and C) varargs work.

@cowtowncoder
Copy link
Member

No current work, or ideas what should be done, so will close for now. May be re-filed at new repo at:

https://github.com/FasterXML/jackson-dataformats-text

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

No branches or pull requests

2 participants