diff options
author | cmrizhangzhen <781953240@qq.com> | 2022-11-04 14:17:15 +0800 |
---|---|---|
committer | cmrizhangzhen <781953240@qq.com> | 2022-11-04 14:18:01 +0800 |
commit | 65df7c24806c58f71e19632fc01750134dd88b34 (patch) | |
tree | a323a4def579cfb02ee7879340d7bb0b3210e092 | |
parent | 36edc4f7b2af711bc3799a7f27d9172dad37c199 (diff) |
modify fashjson convert bean to string
Issue-ID: USECASEUI-750
Signed-off-by: cmrizhangzhen <781953240@qq.com>
Change-Id: I150319c7aec5092e1347c7c611e09d237abf5d28
-rw-r--r-- | server/src/main/java/org/onap/usecaseui/server/service/csmf/impl/SlicingServiceImpl.java | 2 |
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 |