# MessagePack for Java [JavaDoc is available at javadoc.io](https://www.javadoc.io/doc/org.msgpack/msgpack-core). ## How to install You can install msgpack via maven: ... org.msgpack msgpack ${msgpack.version} ... ## Simple Serialization/Deserialization/Duck Typing using Value // Create serialize objects. List src = new ArrayList(); src.add("msgpack"); src.add("kumofs"); src.add("viver"); MessagePack msgpack = new MessagePack(); // Serialize byte[] raw = msgpack.write(src); // Deserialize directly using a template List dst1 = msgpack.read(raw, Templates.tList(Templates.TString)); System.out.println(dst1.get(0)); System.out.println(dst1.get(1)); System.out.println(dst1.get(2)); // Or, Deserialze to Value then convert type. Value dynamic = msgpack.read(raw); List dst2 = new Converter(dynamic) .read(Templates.tList(Templates.TString)); System.out.println(dst2.get(0)); System.out.println(dst2.get(1)); System.out.println(dst2.get(2));