summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcmrizhangzhen <781953240@qq.com>2022-11-04 14:17:15 +0800
committerKeguang He <hekeguang@chinamobile.com>2022-11-04 08:20:46 +0000
commita6061f2db61fc8ac9d0568851751da63cbbaf154 (patch)
treebfbcd1fd00cd60ce8cd5f7c59d626898d756d90a
parent505e7cc68eb3b22757338ea70b05d941c34fffcd (diff)
modify fashjson convert bean to string5.1.3
Issue-ID: USECASEUI-750 Signed-off-by: cmrizhangzhen <781953240@qq.com> Change-Id: I150319c7aec5092e1347c7c611e09d237abf5d28 (cherry picked from commit 65df7c24806c58f71e19632fc01750134dd88b34)
-rw-r--r--server/src/main/java/org/onap/usecaseui/server/service/csmf/impl/SlicingServiceImpl.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/src/main/java/org/onap/usecaseui/server/service/csmf/impl/SlicingServiceImpl.java b/server/src/main/java/org/onap/usecaseui/server/service/csmf/impl/SlicingServiceImpl.java
index b65d2270..a7e29d41 100644
--- a/server/src/main/java/org/onap/usecaseui/server/service/csmf/impl/SlicingServiceImpl.java
+++ b/server/src/main/java/org/onap/usecaseui/server/service/csmf/impl/SlicingServiceImpl.java
@@ -129,7 +129,7 @@ public class SlicingServiceImpl implements SlicingService {
CreationRequest creationRequest = new CreationRequest();
creationRequest.setService(creationService);
- String jsonstr = JSON.toJSONString(creationRequest);
+ String jsonstr = gson.toJson(creationRequest);
logger.info("createSlicingService:creationRequest request is:{}", jsonstr);
RequestBody requestBody = RequestBody.create(MediaType.parse("application/json"), jsonstr.toString());
Response<CreateResponse> updateResponse = soSliceService