46474849505152535455
byte[] raw = pk.toByteArray(); String str = new String(raw); assertEquals("{\"k1\":1,\"k2\":[null,true,false],\"k3\":0.1}", str); JSONBufferUnpacker u = new JSONBufferUnpacker(msgpack).wrap(raw); Value v2 = u.readValue(); assertEquals(v, v2); }
60616263646566
return new JSONUnpacker(this, stream); } @Override public BufferUnpacker createBufferUnpacker() { return new JSONBufferUnpacker(); }