java proprietary data format marshalling



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:



  1. Unmarshall an OtherFormat file/string to Java Object.

  2. Marshall a Java Object to OtherFormat as file/string.

  3. Define the binding between OtherFormat and POJO using custom (or JAXB) annotations or XML configuration files.


Nice to have:



  1. Conversion between XML/JSON to/from OtherFormat


What would you recommended in order to achieve these goals?


No comments:

Post a Comment