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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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.
>
>