gabrywu commented on a change in pull request #2872:
URL: 
https://github.com/apache/incubator-dolphinscheduler/pull/2872#discussion_r438102201



##########
File path: 
dolphinscheduler-remote/src/main/java/org/apache/dolphinscheduler/remote/utils/JsonSerializer.java
##########
@@ -42,7 +56,14 @@
         * @return string
         */
        public static <T> String serializeToString(T obj)  {
-               return JSON.toJSONString(obj);
+               String json = "";
+               try {
+                        json = objectMapper.writeValueAsString(obj);

Review comment:
       why not user JsonUtils tool class ,just suggestion ,nonstrict




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to