serializing a map(heterogeneous) with different objects possible in MessagePack

68 views
Skip to first unread message

nausath ali

unread,
Aug 1, 2013, 10:01:07 AM8/1/13
to msgpa...@googlegroups.com
HI,

Passing a map with different objects is possible...


         Map<Object,Object> map = new Map<Object,Object>();
        map.put("name","nausadh");
        map.put("age",22);
       map.put("dateofbirth",1332938923948l);
        byte[] bb=new MessagePack().write(map);
         Is it possible to serialize this kind of heterogeneous map using MessagePack.? how? please help me on this

Nausadh.
        
        

Muga Nishizawa

unread,
Aug 5, 2013, 7:32:28 AM8/5/13
to msgpa...@googlegroups.com
Hi Nausadh!

Sorry for not replying sooner.

MessagePack's Immediate Representation allows you to
serialize/deserialize Map<Object, Object> as following:
https://gist.github.com/muga/6155233

Please check it:-)
Muga
> --
> You received this message because you are subscribed to the Google Groups
> "MessagePack Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to msgpack-dev...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
Reply all
Reply to author
Forward
0 new messages