One more update for JsonArray detection.

This commit is contained in:
Admin
2017-01-25 15:23:48 -06:00
parent e68282a230
commit b08a285bd0

View File

@@ -153,7 +153,7 @@ public class HarmonyHome implements Home {
} }
} else if(anItem.getType().trim().equalsIgnoreCase(DeviceMapTypes.HARMONY_BUTTON[DeviceMapTypes.typeIndex])) { } else if(anItem.getType().trim().equalsIgnoreCase(DeviceMapTypes.HARMONY_BUTTON[DeviceMapTypes.typeIndex])) {
String url = null; String url = null;
if(anItem.getItem().isJsonObject()) { if(anItem.getItem().isJsonObject() || anItem.getItem().isJsonArray()) {
url = aGsonHandler.toJson(anItem.getItem()); url = aGsonHandler.toJson(anItem.getItem());
} else } else
url = anItem.getItem().getAsString(); url = anItem.getItem().getAsString();