Skip to content

Commit

Permalink
Update github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
dulanjalidilmi committed Feb 18, 2024
1 parent ffe18c3 commit 4c70279
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -527,8 +527,8 @@ private String removeJSONFromString(MessageContext synCtx, String inputString, S
if (path.equals("$") || path.equals("$.")) {
result = "";
} else {
Object list = JsonPath.compile(path).read(result);
if (!((JsonArray) list).isEmpty()) {
JsonElement list = JsonPath.parse(result).read(path);
if (!(list instanceof JsonArray) || !((JsonArray) list).isEmpty()) {
DocumentContext doc = JsonPath.parse(result);
doc.delete(path);
result = doc.jsonString();
Expand Down

0 comments on commit 4c70279

Please sign in to comment.