ARTEMIS-1553 JSON values all being converted to String

This commit is contained in:
Justin Bertram 2017-12-12 10:45:01 -06:00 committed by Clebert Suconic
parent b61be4dc4f
commit 22276856b9
1 changed files with 5 additions and 2 deletions

View File

@ -635,9 +635,12 @@ public interface Message {
default Map<String, Object> toPropertyMap() { default Map<String, Object> toPropertyMap() {
Map map = new HashMap<>(); Map map = new HashMap<>();
for (SimpleString name : getPropertyNames()) { for (SimpleString name : getPropertyNames()) {
//some property is SimpleString, which is not available for management console
Object value = getObjectProperty(name.toString()); Object value = getObjectProperty(name.toString());
map.put(name.toString(), value == null ? null : value.toString()); //some property is SimpleString, which is not available for management console
if (value instanceof SimpleString) {
value = value.toString();
}
map.put(name.toString(), value);
} }
return map; return map;
} }