Skip to content

Commit

Permalink
fix: workflow append string will have quotes #307
Browse files Browse the repository at this point in the history
  • Loading branch information
KFCFans committed Mar 17, 2023
1 parent 93b0119 commit 2a87a24
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ private JsonUtils(){
}

public static String toJSONString(Object obj) {
if (obj instanceof String) {
return (String) obj;
}
try {
return JSON_MAPPER.writeValueAsString(obj);
}catch (Exception e) {
Expand All @@ -41,6 +44,9 @@ public static String toJSONString(Object obj) {
}

public static String toJSONStringUnsafe(Object obj) {
if (obj instanceof String) {
return (String) obj;
}
try {
return JSON_MAPPER.writeValueAsString(obj);
}catch (Exception e) {
Expand Down

0 comments on commit 2a87a24

Please sign in to comment.