Re: map values in message body

2014-05-19 Thread Rafael Schloming
This mysterious incarnation seems to be able to tell the difference: sub isnum ($) { return 0 if $_[0] eq ''; $_[0] ^ $_[0] ? 0 : 1 } If you want to know why then have a look at this thread:

map values in message body

2014-05-16 Thread Ernest Allen
Does proton messenger support sending complex maps as the message body? That is, maps whose values are other maps or lists and not just strings? When I send a message and the body is encoded as qpid::proton::MAP, the map values appear to have been converted to strings. For example (in perl)

Re: map values in message body

2014-05-16 Thread Rafael Schloming
That's most definitely a bug in the Perl binding. It should properly introspect the types of keys/values just like the other bindings. If you file a JIRA I'll see what I can do about fixing it or poking someone else to fix it. ;-) --Rafael On Fri, May 16, 2014 at 11:45 AM, Fraser Adams

Re: map values in message body

2014-05-16 Thread Darryl L. Pierce
On Thu, May 15, 2014 at 01:04:13PM -0400, Ernest Allen wrote: Does proton messenger support sending complex maps as the message body? That is, maps whose values are other maps or lists and not just strings? When I send a message and the body is encoded as qpid::proton::MAP, the map values

Re: map values in message body

2014-05-16 Thread Fraser Adams
Hi Ernie, Messenger per se certainly supports this, the python binding introspects the types accurately and I'm currently writing unit tests for my JavaScript port to prove test the JavaScript introspection behaves correctly too, so if you are seeing an issue it'll be with the Perl binding