buglabs/bugswarm-connector — Issue #32: Basic strings as message payloads returning invalid upon consumption
Author: barberdt
Created: 2011-11-14 22:22:12+00:00
State: open
Labels: java-client

When using the workflow for consuming from a swarm, produce a message with a basic string as the payload produces the following exception in the console.

6c0e <-- {"message":{"from":{"swarm":"1869955f2259ef219f9462b0957d20fe2dbbe569","resource":"admin"},"payload":"foo","public":true}}
Can not instantiate value of type [map type; class java.util.LinkedHashMap, [simple type, class java.lang.Object] -> [simple type, class java.lang.Object]] from JSON String; no single-String constructor/factory method

According to @c4milo, basic strings that are not JSON objects or JSON arrays are valid payload formats.