1 package com.freemindcafe.serialization.sample2;
3 import java.util.HashMap;
11 public void map_without_wrapper() {
12 Map<Integer, String> mappings =
new HashMap<>();
13 mappings.put(1,
"one");
14 mappings.put(2,
"two");
20 System.out.println(xml);
21 System.out.println(json);
26 public void map_within_wrapper() {
28 Map<Integer, String> mappings =
new HashMap<>();
29 mappings.put(1,
"one");
30 mappings.put(2,
"two");
31 wrapper.mappings = mappings;
37 System.out.println(xml);
38 System.out.println(json);
Xstream and Jettison based serialization Jackson is arguably the standard Java Library for processing...