[VOL-4652] Register UniTagInformationCodec to avoid exception on serialization for REST APIs

Change-Id: I6ac7881487bc243f296fe8657d3fec3173cc99ea
diff --git a/app/src/main/java/org/opencord/sadis/impl/SadisManager.java b/app/src/main/java/org/opencord/sadis/impl/SadisManager.java
index b67bfbd..ecd014e 100644
--- a/app/src/main/java/org/opencord/sadis/impl/SadisManager.java
+++ b/app/src/main/java/org/opencord/sadis/impl/SadisManager.java
@@ -27,6 +27,7 @@
 import org.opencord.sadis.BaseInformationService;
 import org.opencord.sadis.SadisService;
 import org.opencord.sadis.SubscriberAndDeviceInformation;
+import org.opencord.sadis.UniTagInformation;
 import org.osgi.service.component.annotations.Activate;
 import org.osgi.service.component.annotations.Component;
 import org.osgi.service.component.annotations.Deactivate;
@@ -73,6 +74,8 @@
 
         registerAdapters();
 
+        codecService.registerCodec(UniTagInformation.class, new UniTagInformationCodec());
+
         log.info("Started");
     }
 
diff --git a/app/src/main/java/org/opencord/sadis/impl/SubscriberAndDeviceInformationCodec.java b/app/src/main/java/org/opencord/sadis/impl/SubscriberAndDeviceInformationCodec.java
index 1c4ab8c..29a5072 100644
--- a/app/src/main/java/org/opencord/sadis/impl/SubscriberAndDeviceInformationCodec.java
+++ b/app/src/main/java/org/opencord/sadis/impl/SubscriberAndDeviceInformationCodec.java
@@ -66,7 +66,7 @@
                 .put(CIRCUIT_ID, (entry.circuitId() == null) ? EMPTY_STRING : entry.circuitId())
                 .put(REMOTE_ID, (entry.remoteId() == null) ? EMPTY_STRING : entry.remoteId())
                 .put(NNI_DHCP_TRAP_VID, entry.nniDhcpTrapVid().toShort())
-                .put(UNI_TAG_LIST, uniTagListNodes.toString());
+                .putPOJO(UNI_TAG_LIST, uniTagListNodes);
     }
 
     @Override