Provide correct output to #process request
authorAlexis de Talhouët <adetalhouet89@gmail.com>
Fri, 22 Feb 2019 22:24:22 +0000 (17:24 -0500)
committerAlexis de Talhouët <adetalhouet89@gmail.com>
Fri, 22 Feb 2019 22:24:55 +0000 (22:24 +0000)
Change-Id: I7e5ceb6fc46b8b8e6289db9b4efe2f27e3f9ce91
Issue-ID: CCSDK-947
Signed-off-by: Alexis de Talhouët <adetalhouet89@gmail.com>
ms/controllerblueprints/modules/blueprint-core/src/main/kotlin/org/onap/ccsdk/apps/controllerblueprints/core/utils/JacksonUtils.kt

index 9bf9d13..76f3f32 100644 (file)
@@ -98,6 +98,10 @@ class JacksonUtils {
             return readValue(content, valueType)
         }
 
+        fun objectNodeFromObject(from: kotlin.Any): ObjectNode {
+            return jacksonObjectMapper().convertValue(from, ObjectNode::class.java)
+        }
+
         fun jsonNodeFromObject(from: kotlin.Any): JsonNode {
             return jacksonObjectMapper().convertValue(from, JsonNode::class.java)
         }