diff options
author | Dan Timoney <dtimoney@att.com> | 2019-02-25 13:48:02 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-02-25 13:48:02 +0000 |
commit | 75dbd90df01e107c28083b9db72f78eb2fcddfd5 (patch) | |
tree | d282e5c865d98f4fc9fd8c798022ba15f812a121 /ms/controllerblueprints/modules/blueprint-core | |
parent | 481b8933870d1351d487974c6370a512f7f5f5f2 (diff) | |
parent | d1bc420a82f6a037c5b7390fc1950818d640ade5 (diff) |
Merge "Provide correct output to #process request"
Diffstat (limited to 'ms/controllerblueprints/modules/blueprint-core')
-rw-r--r-- | ms/controllerblueprints/modules/blueprint-core/src/main/kotlin/org/onap/ccsdk/apps/controllerblueprints/core/utils/JacksonUtils.kt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ms/controllerblueprints/modules/blueprint-core/src/main/kotlin/org/onap/ccsdk/apps/controllerblueprints/core/utils/JacksonUtils.kt b/ms/controllerblueprints/modules/blueprint-core/src/main/kotlin/org/onap/ccsdk/apps/controllerblueprints/core/utils/JacksonUtils.kt index 9bf9d13cf..76f3f329f 100644 --- a/ms/controllerblueprints/modules/blueprint-core/src/main/kotlin/org/onap/ccsdk/apps/controllerblueprints/core/utils/JacksonUtils.kt +++ b/ms/controllerblueprints/modules/blueprint-core/src/main/kotlin/org/onap/ccsdk/apps/controllerblueprints/core/utils/JacksonUtils.kt @@ -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) } |