-
Notes
This sample code shows how to use Jackson to:
-
The project Structure
-
Maven - POM Configuration
-
ResourceUtils.java
-
Model (JAXB): Payload.java
-
Model (JAXB): PayloadParameter.java
-
package-info.java
-
Model (Jackson): Payload.java
-
Model (Jackson): PayloadParameter.java
-
Schema: payload.xsd
-
Sample XML: payload.xml
-
Sample Json: payload.json
-
Marshaller (JAXB): TestMarshaller.java
Output:
-
Marshaller (Jackson): TestXMLMarshaller.java
Output:
-
Unmarshaller (Jackson): TestXMLUnmarshaller.java
Output:
-
Marshaller (Jackson): TestJsonMarshaller.java
Output:
-
Unmarshaller (Jackson): TestJsonUnmarshaller.java
Output: