Skip to content

Commit

Permalink
revert unnecessary change (LTS)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeloffner committed Nov 16, 2023
1 parent 5e985b7 commit 807e292
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,6 @@ public class IsJSON {
public static boolean call(PageContext pc, Object obj) {
String str = Caster.toString(obj, null);
if (StringUtil.isEmpty(str, true)) return false;
str = str.trim();
if ((!str.startsWith("{") && !str.startsWith("[")) || (!str.endsWith("}") && !str.endsWith("]"))) {
return false;
}

try {
new JSONExpressionInterpreter().interpret(pc, str);
Expand Down

0 comments on commit 807e292

Please sign in to comment.