I am working on Java project that uses a custom proprietary data format (like XML or JSON), let's call it OtherFormat.
Much like annotations or XML configuration files dictate the binding between POJOs and their XML (or JSON) representations, I wish to do the same with OtherFormat.
(OtherFormat is an hierarchical key/value data structure, so existing JSON annotations might work as well.)
Specifically, my use cases are:
- Unmarshall an OtherFormat file/string to Java Object.
- Marshall a Java Object to OtherFormat as file/string.
- Define the binding between OtherFormat and POJO using custom (or JAXB) annotations or XML configuration files.
Nice to have:
- Conversion between XML/JSON to/from OtherFormat
What would you recommended in order to achieve these goals?
No comments:
Post a Comment